Skip to content

Commit

Permalink
chore: clean up dependency graph repos (#7920)
Browse files Browse the repository at this point in the history
Update the list of the cli repos, as its been a while. And fix `which`'s association with its repo.
  • Loading branch information
hashtagchris authored Nov 25, 2024
1 parent 16b7367 commit 475285b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
6 changes: 3 additions & 3 deletions DEPENDENCIES.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@
"make-fetch-happen"
],
[
"@npmcli/smoke-tests",
"@npmcli/installed-package-contents",
"npm-pick-manifest",
"cacache",
"promzard"
],
[
"@npmcli/docs",
"@npmcli/smoke-tests",
"@npmcli/fs",
"npm-bundled",
"@npmcli/promise-spawn",
"npm-install-checks",
"npm-package-arg",
"normalize-package-data",
Expand All @@ -69,13 +70,12 @@
"semver",
"npm-normalize-package-bin",
"@npmcli/name-from-folder",
"@npmcli/promise-spawn",
"which",
"ini",
"hosted-git-info",
"proc-log",
"validate-npm-package-name",
"json-parse-even-better-errors",
"fs-minipass",
"ssri",
"unique-slug",
"@npmcli/node-gyp",
Expand Down
14 changes: 8 additions & 6 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ graph LR;
bin-links-->proc-log;
bin-links-->read-cmd-shim;
bin-links-->write-file-atomic;
cacache-->fs-minipass;
cacache-->npmcli-fs["@npmcli/fs"];
cacache-->ssri;
cacache-->unique-filename;
Expand Down Expand Up @@ -86,7 +85,6 @@ graph LR;
normalize-package-data-->semver;
npm-->abbrev;
npm-->cacache;
npm-->fs-minipass;
npm-->hosted-git-info;
npm-->ini;
npm-->init-package-json;
Expand Down Expand Up @@ -134,6 +132,7 @@ graph LR;
npm-->semver;
npm-->ssri;
npm-->validate-npm-package-name;
npm-->which;
npm-bundled-->npm-normalize-package-bin;
npm-install-checks-->semver;
npm-package-arg-->hosted-git-info;
Expand Down Expand Up @@ -200,6 +199,7 @@ graph LR;
npmcli-git-->npmcli-promise-spawn["@npmcli/promise-spawn"];
npmcli-git-->proc-log;
npmcli-git-->semver;
npmcli-git-->which;
npmcli-installed-package-contents-->npm-bundled;
npmcli-installed-package-contents-->npm-normalize-package-bin;
npmcli-map-workspaces-->npmcli-name-from-folder["@npmcli/name-from-folder"];
Expand All @@ -222,16 +222,18 @@ graph LR;
npmcli-package-json-->npmcli-git["@npmcli/git"];
npmcli-package-json-->proc-log;
npmcli-package-json-->semver;
npmcli-promise-spawn-->which;
npmcli-run-script-->npmcli-node-gyp["@npmcli/node-gyp"];
npmcli-run-script-->npmcli-package-json["@npmcli/package-json"];
npmcli-run-script-->npmcli-promise-spawn["@npmcli/promise-spawn"];
npmcli-run-script-->proc-log;
npmcli-run-script-->which;
npmcli-smoke-tests-->npmcli-eslint-config["@npmcli/eslint-config"];
npmcli-smoke-tests-->npmcli-mock-registry["@npmcli/mock-registry"];
npmcli-smoke-tests-->npmcli-promise-spawn["@npmcli/promise-spawn"];
npmcli-smoke-tests-->npmcli-template-oss["@npmcli/template-oss"];
npmcli-smoke-tests-->which;
pacote-->cacache;
pacote-->fs-minipass;
pacote-->npm-package-arg;
pacote-->npm-packlist;
pacote-->npm-pick-manifest;
Expand Down Expand Up @@ -786,6 +788,6 @@ packages higher up the chain.
- @npmcli/map-workspaces, @npmcli/run-script, libnpmaccess, libnpmorg, libnpmpublish, libnpmsearch, libnpmteam, init-package-json, npm-profile
- @npmcli/package-json, npm-registry-fetch
- @npmcli/git, make-fetch-happen
- @npmcli/installed-package-contents, npm-pick-manifest, cacache, promzard
- @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
- @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, fs-minipass, 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
- @npmcli/smoke-tests, @npmcli/installed-package-contents, npm-pick-manifest, cacache, promzard
- @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
- @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
3 changes: 2 additions & 1 deletion scripts/dependency-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ function difference (set1, set2) {

// these have a different package name than the repo name, and are ours.
const aliases = {
semver: 'node-semver',
abbrev: 'abbrev-js',
semver: 'node-semver',
which: 'node-which',
}

// These are entries in npm-cli-repos.txt that correlate to namespaced repos.
Expand Down
11 changes: 2 additions & 9 deletions scripts/npm-cli-repos.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
abbrev-js
agent
are-we-there-yet
benchmarks
bin-links
cacache
cli
cmd-shim
create-oss
disparity-colors
documentation
eslint-config
fs
fs-minipass
gauge
git
hosted-git-info
ignore-walk
Expand Down Expand Up @@ -43,7 +37,6 @@ npm-pick-manifest
npm-profile
npm-registry-fetch
npm-user-validate
npmlog
package-json
pacote
parse-conflict-json
Expand All @@ -54,15 +47,15 @@ promzard
query
read
read-cmd-shim
read-package-json
read-package-json-fast
redact
rfcs
run-script
ssri
stafftools
statusboard
tap-nock
template-oss
types
unique-filename
unique-slug
validate-npm-package-name
Expand Down

0 comments on commit 475285b

Please sign in to comment.