Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2021-03-16 02:59:33 +0300
committerisaacs <i@izs.me>2021-03-18 21:58:08 +0300
commit7c89e74469520f80a0922987c761ebd808d8608c (patch)
tree1dbad27532b5c11902be79b8a55ae08f4766f1f7 /bin
parentf52c51db13c39cfbaed18dbd13ba7302a4b6a0d9 (diff)
update lib/*.js to use new config structures
Diffstat (limited to 'bin')
-rwxr-xr-xbin/npx-cli.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/npx-cli.js b/bin/npx-cli.js
index f4a419972..a495090c6 100755
--- a/bin/npx-cli.js
+++ b/bin/npx-cli.js
@@ -24,11 +24,11 @@ const removed = new Set([
...removedOpts
])
-const { types, shorthands } = require('../lib/utils/config.js')
-const npmSwitches = Object.entries(types)
- .filter(([key, type]) => type === Boolean ||
+const { definitions, shorthands } = require('../lib/utils/config/index.js')
+const npmSwitches = Object.entries(definitions)
+ .filter(([key, {type}]) => type === Boolean ||
(Array.isArray(type) && type.includes(Boolean)))
- .map(([key, type]) => key)
+ .map(([key]) => key)
// things that don't take a value
const switches = new Set([