diff options
author | isaacs <i@izs.me> | 2021-03-16 02:59:33 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2021-03-18 21:58:08 +0300 |
commit | 7c89e74469520f80a0922987c761ebd808d8608c (patch) | |
tree | 1dbad27532b5c11902be79b8a55ae08f4766f1f7 /bin | |
parent | f52c51db13c39cfbaed18dbd13ba7302a4b6a0d9 (diff) |
update lib/*.js to use new config structures
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/npx-cli.js | 8 |
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([ |