Skip to content

Commit e722439

Browse files
committedJun 7, 2023
fix: move all definitions to @npmcli/config package
1 parent 6a9bf73 commit e722439

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+490
-3263
lines changed
 

‎DEPENDENCIES.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,13 @@ graph LR;
187187
npmcli-config-->nopt;
188188
npmcli-config-->npmcli-eslint-config["@npmcli/eslint-config"];
189189
npmcli-config-->npmcli-map-workspaces["@npmcli/map-workspaces"];
190+
npmcli-config-->npmcli-mock-globals["@npmcli/mock-globals"];
190191
npmcli-config-->npmcli-template-oss["@npmcli/template-oss"];
191192
npmcli-config-->proc-log;
192193
npmcli-config-->read-package-json-fast;
193194
npmcli-config-->semver;
194195
npmcli-docs-->ignore-walk;
196+
npmcli-docs-->npmcli-config["@npmcli/config"];
195197
npmcli-docs-->npmcli-eslint-config["@npmcli/eslint-config"];
196198
npmcli-docs-->npmcli-template-oss["@npmcli/template-oss"];
197199
npmcli-docs-->semver;
@@ -644,10 +646,12 @@ graph LR;
644646
npmcli-arborist-->tcompare;
645647
npmcli-arborist-->treeverse;
646648
npmcli-arborist-->walk-up-path;
649+
npmcli-config-->ci-info;
647650
npmcli-config-->ini;
648651
npmcli-config-->nopt;
649652
npmcli-config-->npmcli-eslint-config["@npmcli/eslint-config"];
650653
npmcli-config-->npmcli-map-workspaces["@npmcli/map-workspaces"];
654+
npmcli-config-->npmcli-mock-globals["@npmcli/mock-globals"];
651655
npmcli-config-->npmcli-template-oss["@npmcli/template-oss"];
652656
npmcli-config-->proc-log;
653657
npmcli-config-->read-package-json-fast;
@@ -659,6 +663,7 @@ graph LR;
659663
npmcli-docs-->ignore-walk;
660664
npmcli-docs-->isaacs-string-locale-compare["@isaacs/string-locale-compare"];
661665
npmcli-docs-->jsdom;
666+
npmcli-docs-->npmcli-config["@npmcli/config"];
662667
npmcli-docs-->npmcli-eslint-config["@npmcli/eslint-config"];
663668
npmcli-docs-->npmcli-template-oss["@npmcli/template-oss"];
664669
npmcli-docs-->rehype-stringify;
@@ -826,8 +831,8 @@ packages higher up the chain.
826831
- @npmcli/arborist
827832
- @npmcli/metavuln-calculator
828833
- pacote, libnpmhook, libnpmorg, libnpmsearch, libnpmteam, npm-profile
829-
- npm-registry-fetch, @npmcli/package-json, libnpmversion
830-
- @npmcli/git, make-fetch-happen, @npmcli/config, init-package-json
831-
- @npmcli/installed-package-contents, @npmcli/map-workspaces, cacache, npm-pick-manifest, @npmcli/run-script, read-package-json, promzard
832-
- @npmcli/docs, @npmcli/fs, npm-bundled, read-package-json-fast, unique-filename, npm-install-checks, npm-package-arg, npm-packlist, normalize-package-data, bin-links, nopt, npmlog, parse-conflict-json, @npmcli/mock-globals, read
833-
- @npmcli/eslint-config, @npmcli/template-oss, ignore-walk, semver, npm-normalize-package-bin, @npmcli/name-from-folder, json-parse-even-better-errors, fs-minipass, ssri, unique-slug, @npmcli/promise-spawn, hosted-git-info, proc-log, validate-npm-package-name, @npmcli/node-gyp, minipass-fetch, @npmcli/query, cmd-shim, read-cmd-shim, write-file-atomic, abbrev, are-we-there-yet, gauge, minify-registry-metadata, ini, @npmcli/disparity-colors, mute-stream, npm-audit-report, npm-user-validate
834+
- @npmcli/docs, npm-registry-fetch, @npmcli/package-json, libnpmversion
835+
- @npmcli/config, @npmcli/git, make-fetch-happen, init-package-json
836+
- @npmcli/map-workspaces, @npmcli/installed-package-contents, cacache, npm-pick-manifest, @npmcli/run-script, read-package-json, promzard
837+
- read-package-json-fast, nopt, @npmcli/mock-globals, @npmcli/fs, npm-bundled, unique-filename, npm-install-checks, npm-package-arg, npm-packlist, normalize-package-data, bin-links, npmlog, parse-conflict-json, read
838+
- @npmcli/name-from-folder, json-parse-even-better-errors, npm-normalize-package-bin, ini, abbrev, proc-log, semver, @npmcli/eslint-config, @npmcli/template-oss, ignore-walk, fs-minipass, ssri, unique-slug, @npmcli/promise-spawn, hosted-git-info, validate-npm-package-name, @npmcli/node-gyp, minipass-fetch, @npmcli/query, cmd-shim, read-cmd-shim, write-file-atomic, are-we-there-yet, gauge, minify-registry-metadata, @npmcli/disparity-colors, mute-stream, npm-audit-report, npm-user-validate

‎bin/npx-cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const removed = new Set([
2424
...removedOpts,
2525
])
2626

27-
const { definitions, shorthands } = require('../lib/utils/config/index.js')
27+
const { definitions, shorthands } = require('@npmcli/config/lib/definitions')
2828
const npmSwitches = Object.entries(definitions)
2929
.filter(([key, { type }]) => type === Boolean ||
3030
(Array.isArray(type) && type.includes(Boolean)))

0 commit comments

Comments
 (0)
Please sign in to comment.