Skip to content

Commit 47b9c11

Browse files
committed
chore: associate node-which repo with which package
1 parent 16db9a7 commit 47b9c11

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

DEPENDENCIES.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,17 @@
4040
"make-fetch-happen"
4141
],
4242
[
43+
"@npmcli/smoke-tests",
4344
"@npmcli/installed-package-contents",
4445
"npm-pick-manifest",
4546
"cacache",
4647
"promzard"
4748
],
4849
[
4950
"@npmcli/docs",
50-
"@npmcli/smoke-tests",
5151
"@npmcli/fs",
5252
"npm-bundled",
53+
"@npmcli/promise-spawn",
5354
"npm-install-checks",
5455
"npm-package-arg",
5556
"normalize-package-data",
@@ -69,7 +70,7 @@
6970
"semver",
7071
"npm-normalize-package-bin",
7172
"@npmcli/name-from-folder",
72-
"@npmcli/promise-spawn",
73+
"which",
7374
"ini",
7475
"hosted-git-info",
7576
"proc-log",

DEPENDENCIES.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ graph LR;
132132
npm-->semver;
133133
npm-->ssri;
134134
npm-->validate-npm-package-name;
135+
npm-->which;
135136
npm-bundled-->npm-normalize-package-bin;
136137
npm-install-checks-->semver;
137138
npm-package-arg-->hosted-git-info;
@@ -198,6 +199,7 @@ graph LR;
198199
npmcli-git-->npmcli-promise-spawn["@npmcli/promise-spawn"];
199200
npmcli-git-->proc-log;
200201
npmcli-git-->semver;
202+
npmcli-git-->which;
201203
npmcli-installed-package-contents-->npm-bundled;
202204
npmcli-installed-package-contents-->npm-normalize-package-bin;
203205
npmcli-map-workspaces-->npmcli-name-from-folder["@npmcli/name-from-folder"];
@@ -220,14 +222,17 @@ graph LR;
220222
npmcli-package-json-->npmcli-git["@npmcli/git"];
221223
npmcli-package-json-->proc-log;
222224
npmcli-package-json-->semver;
225+
npmcli-promise-spawn-->which;
223226
npmcli-run-script-->npmcli-node-gyp["@npmcli/node-gyp"];
224227
npmcli-run-script-->npmcli-package-json["@npmcli/package-json"];
225228
npmcli-run-script-->npmcli-promise-spawn["@npmcli/promise-spawn"];
226229
npmcli-run-script-->proc-log;
230+
npmcli-run-script-->which;
227231
npmcli-smoke-tests-->npmcli-eslint-config["@npmcli/eslint-config"];
228232
npmcli-smoke-tests-->npmcli-mock-registry["@npmcli/mock-registry"];
229233
npmcli-smoke-tests-->npmcli-promise-spawn["@npmcli/promise-spawn"];
230234
npmcli-smoke-tests-->npmcli-template-oss["@npmcli/template-oss"];
235+
npmcli-smoke-tests-->which;
231236
pacote-->cacache;
232237
pacote-->npm-package-arg;
233238
pacote-->npm-packlist;
@@ -783,6 +788,6 @@ packages higher up the chain.
783788
- @npmcli/map-workspaces, @npmcli/run-script, libnpmaccess, libnpmorg, libnpmpublish, libnpmsearch, libnpmteam, init-package-json, npm-profile
784789
- @npmcli/package-json, npm-registry-fetch
785790
- @npmcli/git, make-fetch-happen
786-
- @npmcli/installed-package-contents, npm-pick-manifest, cacache, promzard
787-
- @npmcli/docs, @npmcli/smoke-tests, @npmcli/fs, npm-bundled, npm-install-checks, npm-package-arg, normalize-package-data, unique-filename, npm-packlist, bin-links, nopt, parse-conflict-json, read-package-json-fast, @npmcli/mock-globals, read
788-
- @npmcli/eslint-config, @npmcli/template-oss, ignore-walk, semver, npm-normalize-package-bin, @npmcli/name-from-folder, @npmcli/promise-spawn, ini, hosted-git-info, proc-log, validate-npm-package-name, json-parse-even-better-errors, ssri, unique-slug, @npmcli/node-gyp, @npmcli/redact, @npmcli/agent, minipass-fetch, @npmcli/query, cmd-shim, read-cmd-shim, write-file-atomic, abbrev, proggy, minify-registry-metadata, mute-stream, npm-audit-report, npm-user-validate
791+
- @npmcli/smoke-tests, @npmcli/installed-package-contents, npm-pick-manifest, cacache, promzard
792+
- @npmcli/docs, @npmcli/fs, npm-bundled, @npmcli/promise-spawn, npm-install-checks, npm-package-arg, normalize-package-data, unique-filename, npm-packlist, bin-links, nopt, parse-conflict-json, read-package-json-fast, @npmcli/mock-globals, read
793+
- @npmcli/eslint-config, @npmcli/template-oss, ignore-walk, semver, npm-normalize-package-bin, @npmcli/name-from-folder, which, ini, hosted-git-info, proc-log, validate-npm-package-name, json-parse-even-better-errors, ssri, unique-slug, @npmcli/node-gyp, @npmcli/redact, @npmcli/agent, minipass-fetch, @npmcli/query, cmd-shim, read-cmd-shim, write-file-atomic, abbrev, proggy, minify-registry-metadata, mute-stream, npm-audit-report, npm-user-validate

scripts/dependency-graph.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ function difference (set1, set2) {
3838

3939
// these have a different package name than the repo name, and are ours.
4040
const aliases = {
41-
semver: 'node-semver',
4241
abbrev: 'abbrev-js',
42+
semver: 'node-semver',
43+
which: 'node-which',
4344
}
4445

4546
// These are entries in npm-cli-repos.txt that correlate to namespaced repos.

0 commit comments

Comments
 (0)