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>2020-08-18 19:51:42 +0300
committerisaacs <i@izs.me>2020-08-18 22:26:28 +0300
commit5cb9a1d4d985aaa8e988c51fe5ae7f7ed3602811 (patch)
treec8ba4a7c51df98f2d6a5098f3e4c619cc569adfa /bin
parente929b28c0d9040d136d70534702ac2067aa0ff06 (diff)
use @npmcli/config for configuration
This also refactors the completion.js command, still pending proper tests.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/npx-cli.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/npx-cli.js b/bin/npx-cli.js
index 716dc958e..f4a419972 100755
--- a/bin/npx-cli.js
+++ b/bin/npx-cli.js
@@ -24,7 +24,7 @@ const removed = new Set([
...removedOpts
])
-const { types, shorthands } = require('../lib/config/defaults.js')
+const { types, shorthands } = require('../lib/utils/config.js')
const npmSwitches = Object.entries(types)
.filter(([key, type]) => type === Boolean ||
(Array.isArray(type) && type.includes(Boolean)))