Skip to content

Commit 1f619f1

Browse files
committed
fix: associate node-which repo with which package
1 parent 0b25396 commit 1f619f1

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

DEPENDENCIES.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"@npmcli/docs",
5353
"@npmcli/fs",
5454
"npm-bundled",
55+
"@npmcli/promise-spawn",
5556
"npm-install-checks",
5657
"npm-package-arg",
5758
"normalize-package-data",
@@ -71,7 +72,7 @@
7172
"semver",
7273
"npm-normalize-package-bin",
7374
"@npmcli/name-from-folder",
74-
"@npmcli/promise-spawn",
75+
"which",
7576
"ini",
7677
"hosted-git-info",
7778
"proc-log",

DEPENDENCIES.md

Lines changed: 7 additions & 2 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;
@@ -197,6 +198,7 @@ graph LR;
197198
npmcli-git-->npmcli-promise-spawn["@npmcli/promise-spawn"];
198199
npmcli-git-->proc-log;
199200
npmcli-git-->semver;
201+
npmcli-git-->which;
200202
npmcli-installed-package-contents-->npm-bundled;
201203
npmcli-installed-package-contents-->npm-normalize-package-bin;
202204
npmcli-map-workspaces-->npmcli-name-from-folder["@npmcli/name-from-folder"];
@@ -219,14 +221,17 @@ graph LR;
219221
npmcli-package-json-->npmcli-git["@npmcli/git"];
220222
npmcli-package-json-->proc-log;
221223
npmcli-package-json-->semver;
224+
npmcli-promise-spawn-->which;
222225
npmcli-run-script-->npmcli-node-gyp["@npmcli/node-gyp"];
223226
npmcli-run-script-->npmcli-package-json["@npmcli/package-json"];
224227
npmcli-run-script-->npmcli-promise-spawn["@npmcli/promise-spawn"];
225228
npmcli-run-script-->proc-log;
229+
npmcli-run-script-->which;
226230
npmcli-smoke-tests-->npmcli-eslint-config["@npmcli/eslint-config"];
227231
npmcli-smoke-tests-->npmcli-mock-registry["@npmcli/mock-registry"];
228232
npmcli-smoke-tests-->npmcli-promise-spawn["@npmcli/promise-spawn"];
229233
npmcli-smoke-tests-->npmcli-template-oss["@npmcli/template-oss"];
234+
npmcli-smoke-tests-->which;
230235
pacote-->cacache;
231236
pacote-->npm-package-arg;
232237
pacote-->npm-packlist;
@@ -783,5 +788,5 @@ packages higher up the chain.
783788
- @npmcli/package-json, npm-registry-fetch
784789
- @npmcli/git, make-fetch-happen
785790
- @npmcli/installed-package-contents, npm-pick-manifest, cacache, promzard
786-
- @npmcli/docs, @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
787-
- @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/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
792+
- @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
@@ -13,8 +13,9 @@ const repos = readFileSync(join(CWD, 'scripts', 'npm-cli-repos.txt'), 'utf-8').t
1313

1414
// these have a different package name than the repo name, and are ours.
1515
const aliases = {
16-
semver: 'node-semver',
1716
abbrev: 'abbrev-js',
17+
semver: 'node-semver',
18+
which: 'node-which',
1819
}
1920

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

0 commit comments

Comments
 (0)