From 1a0f26f55c59967370f849e416111d534ef6ac78 Mon Sep 17 00:00:00 2001 From: npm team Date: Thu, 24 Feb 2022 21:41:49 +0000 Subject: [PATCH] deps: upgrade npm to 8.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/42122 Reviewed-By: Colin Ihrig Reviewed-By: Mestery Reviewed-By: Danielle Adams Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen --- deps/npm/docs/content/commands/npm-access.md | 12 +- deps/npm/docs/content/commands/npm-adduser.md | 11 +- deps/npm/docs/content/commands/npm-audit.md | 14 +- deps/npm/docs/content/commands/npm-bin.md | 11 +- deps/npm/docs/content/commands/npm-bugs.md | 13 +- deps/npm/docs/content/commands/npm-cache.md | 24 +- deps/npm/docs/content/commands/npm-ci.md | 11 + .../docs/content/commands/npm-completion.md | 11 +- deps/npm/docs/content/commands/npm-config.md | 11 +- deps/npm/docs/content/commands/npm-dedupe.md | 30 +- .../docs/content/commands/npm-deprecate.md | 11 +- deps/npm/docs/content/commands/npm-diff.md | 13 +- .../npm/docs/content/commands/npm-dist-tag.md | 11 +- deps/npm/docs/content/commands/npm-docs.md | 11 +- deps/npm/docs/content/commands/npm-doctor.md | 9 + deps/npm/docs/content/commands/npm-edit.md | 11 +- deps/npm/docs/content/commands/npm-exec.md | 21 +- deps/npm/docs/content/commands/npm-explain.md | 9 + deps/npm/docs/content/commands/npm-explore.md | 9 + .../docs/content/commands/npm-find-dupes.md | 11 + deps/npm/docs/content/commands/npm-fund.md | 12 +- .../docs/content/commands/npm-help-search.md | 9 + deps/npm/docs/content/commands/npm-help.md | 11 + deps/npm/docs/content/commands/npm-hook.md | 13 +- deps/npm/docs/content/commands/npm-init.md | 27 +- .../content/commands/npm-install-ci-test.md | 11 +- .../docs/content/commands/npm-install-test.md | 37 +- deps/npm/docs/content/commands/npm-install.md | 38 +- deps/npm/docs/content/commands/npm-link.md | 22 +- deps/npm/docs/content/commands/npm-logout.md | 11 +- deps/npm/docs/content/commands/npm-ls.md | 11 +- deps/npm/docs/content/commands/npm-org.md | 17 +- .../npm/docs/content/commands/npm-outdated.md | 9 + deps/npm/docs/content/commands/npm-owner.md | 11 +- deps/npm/docs/content/commands/npm-pack.md | 11 +- deps/npm/docs/content/commands/npm-ping.md | 11 +- deps/npm/docs/content/commands/npm-pkg.md | 15 +- deps/npm/docs/content/commands/npm-prefix.md | 9 + deps/npm/docs/content/commands/npm-profile.md | 16 +- deps/npm/docs/content/commands/npm-prune.md | 11 +- deps/npm/docs/content/commands/npm-publish.md | 14 +- deps/npm/docs/content/commands/npm-rebuild.md | 9 + deps/npm/docs/content/commands/npm-repo.md | 9 + deps/npm/docs/content/commands/npm-restart.md | 9 + deps/npm/docs/content/commands/npm-root.md | 11 +- .../docs/content/commands/npm-run-script.md | 13 +- deps/npm/docs/content/commands/npm-search.md | 11 +- .../docs/content/commands/npm-set-script.md | 9 + .../docs/content/commands/npm-shrinkwrap.md | 9 + deps/npm/docs/content/commands/npm-star.md | 9 + deps/npm/docs/content/commands/npm-stars.md | 10 + deps/npm/docs/content/commands/npm-start.md | 9 + deps/npm/docs/content/commands/npm-stop.md | 9 + deps/npm/docs/content/commands/npm-team.md | 19 +- deps/npm/docs/content/commands/npm-test.md | 11 +- deps/npm/docs/content/commands/npm-token.md | 16 +- .../docs/content/commands/npm-uninstall.md | 22 +- deps/npm/docs/content/commands/npm-unstar.md | 9 + deps/npm/docs/content/commands/npm-update.md | 31 +- deps/npm/docs/content/commands/npm-version.md | 15 +- deps/npm/docs/content/commands/npm-view.md | 13 +- deps/npm/docs/content/commands/npm-whoami.md | 11 +- deps/npm/docs/content/commands/npm.md | 5 +- deps/npm/docs/content/commands/npx.md | 24 +- deps/npm/docs/content/using-npm/scripts.md | 5 + deps/npm/docs/output/commands/npm-access.html | 9 +- .../npm/docs/output/commands/npm-adduser.html | 8 +- deps/npm/docs/output/commands/npm-audit.html | 11 +- deps/npm/docs/output/commands/npm-bin.html | 8 +- deps/npm/docs/output/commands/npm-bugs.html | 10 +- deps/npm/docs/output/commands/npm-cache.html | 21 +- deps/npm/docs/output/commands/npm-ci.html | 8 + .../docs/output/commands/npm-completion.html | 8 +- deps/npm/docs/output/commands/npm-config.html | 8 +- deps/npm/docs/output/commands/npm-dedupe.html | 24 +- .../docs/output/commands/npm-deprecate.html | 8 +- deps/npm/docs/output/commands/npm-diff.html | 10 +- .../docs/output/commands/npm-dist-tag.html | 8 +- deps/npm/docs/output/commands/npm-docs.html | 8 +- deps/npm/docs/output/commands/npm-doctor.html | 6 + deps/npm/docs/output/commands/npm-edit.html | 8 +- deps/npm/docs/output/commands/npm-exec.html | 20 +- .../npm/docs/output/commands/npm-explain.html | 6 + .../npm/docs/output/commands/npm-explore.html | 6 + .../docs/output/commands/npm-find-dupes.html | 7 + deps/npm/docs/output/commands/npm-fund.html | 9 +- .../docs/output/commands/npm-help-search.html | 6 + deps/npm/docs/output/commands/npm-help.html | 8 + deps/npm/docs/output/commands/npm-hook.html | 12 +- deps/npm/docs/output/commands/npm-init.html | 24 +- .../output/commands/npm-install-ci-test.html | 8 +- .../output/commands/npm-install-test.html | 32 +- .../npm/docs/output/commands/npm-install.html | 33 +- deps/npm/docs/output/commands/npm-link.html | 17 +- deps/npm/docs/output/commands/npm-logout.html | 8 +- deps/npm/docs/output/commands/npm-ls.html | 10 +- deps/npm/docs/output/commands/npm-org.html | 14 +- .../docs/output/commands/npm-outdated.html | 6 + deps/npm/docs/output/commands/npm-owner.html | 8 +- deps/npm/docs/output/commands/npm-pack.html | 8 +- deps/npm/docs/output/commands/npm-ping.html | 8 +- deps/npm/docs/output/commands/npm-pkg.html | 12 +- deps/npm/docs/output/commands/npm-prefix.html | 6 + .../npm/docs/output/commands/npm-profile.html | 13 +- deps/npm/docs/output/commands/npm-prune.html | 8 +- .../npm/docs/output/commands/npm-publish.html | 11 +- .../npm/docs/output/commands/npm-rebuild.html | 6 + deps/npm/docs/output/commands/npm-repo.html | 6 + .../npm/docs/output/commands/npm-restart.html | 6 + deps/npm/docs/output/commands/npm-root.html | 8 +- .../docs/output/commands/npm-run-script.html | 10 +- deps/npm/docs/output/commands/npm-search.html | 8 +- .../docs/output/commands/npm-set-script.html | 6 + .../docs/output/commands/npm-shrinkwrap.html | 6 + deps/npm/docs/output/commands/npm-star.html | 6 + deps/npm/docs/output/commands/npm-stars.html | 6 + deps/npm/docs/output/commands/npm-start.html | 6 + deps/npm/docs/output/commands/npm-stop.html | 6 + deps/npm/docs/output/commands/npm-team.html | 16 +- deps/npm/docs/output/commands/npm-test.html | 8 +- deps/npm/docs/output/commands/npm-token.html | 12 +- .../docs/output/commands/npm-uninstall.html | 18 +- deps/npm/docs/output/commands/npm-unstar.html | 6 + deps/npm/docs/output/commands/npm-update.html | 25 +- .../npm/docs/output/commands/npm-version.html | 12 +- deps/npm/docs/output/commands/npm-view.html | 10 +- deps/npm/docs/output/commands/npm-whoami.html | 8 +- deps/npm/docs/output/commands/npm.html | 6 +- deps/npm/docs/output/commands/npx.html | 23 +- deps/npm/docs/output/using-npm/scripts.html | 5 + deps/npm/lib/commands/access.js | 2 - deps/npm/lib/commands/adduser.js | 1 - deps/npm/lib/commands/ci.js | 3 +- deps/npm/lib/commands/dedupe.js | 2 - deps/npm/lib/commands/deprecate.js | 3 - deps/npm/lib/commands/diff.js | 2 - deps/npm/lib/commands/dist-tag.js | 1 - deps/npm/lib/commands/doctor.js | 3 +- deps/npm/lib/commands/exec.js | 2 - deps/npm/lib/commands/fund.js | 2 - deps/npm/lib/commands/hook.js | 10 +- deps/npm/lib/commands/init.js | 1 - deps/npm/lib/commands/install.js | 3 +- deps/npm/lib/commands/link.js | 6 - deps/npm/lib/commands/logout.js | 1 - deps/npm/lib/commands/org.js | 8 +- deps/npm/lib/commands/owner.js | 2 - deps/npm/lib/commands/ping.js | 2 +- deps/npm/lib/commands/profile.js | 8 +- deps/npm/lib/commands/prune.js | 2 - deps/npm/lib/commands/publish.js | 6 +- deps/npm/lib/commands/run-script.js | 6 +- deps/npm/lib/commands/star.js | 4 +- deps/npm/lib/commands/team.js | 15 +- deps/npm/lib/commands/token.js | 2 +- deps/npm/lib/commands/uninstall.js | 2 - deps/npm/lib/commands/unpublish.js | 7 +- deps/npm/lib/commands/update.js | 1 - deps/npm/lib/commands/whoami.js | 3 +- deps/npm/lib/npm.js | 6 +- deps/npm/lib/utils/config/definitions.js | 3 + deps/npm/lib/utils/display.js | 4 +- deps/npm/lib/utils/exit-handler.js | 6 +- deps/npm/lib/utils/reify-output.js | 6 +- deps/npm/lib/utils/update-notifier.js | 3 +- deps/npm/man/man1/npm-access.1 | 14 - deps/npm/man/man1/npm-adduser.1 | 13 +- deps/npm/man/man1/npm-audit.1 | 37 +- deps/npm/man/man1/npm-bin.1 | 10 +- deps/npm/man/man1/npm-bugs.1 | 15 +- deps/npm/man/man1/npm-cache.1 | 23 +- deps/npm/man/man1/npm-ci.1 | 16 +- deps/npm/man/man1/npm-completion.1 | 2 +- deps/npm/man/man1/npm-config.1 | 22 - deps/npm/man/man1/npm-dedupe.1 | 63 +- deps/npm/man/man1/npm-deprecate.1 | 13 +- deps/npm/man/man1/npm-diff.1 | 47 -- deps/npm/man/man1/npm-dist-tag.1 | 16 +- deps/npm/man/man1/npm-docs.1 | 22 +- deps/npm/man/man1/npm-doctor.1 | 8 - deps/npm/man/man1/npm-edit.1 | 10 +- deps/npm/man/man1/npm-exec.1 | 34 +- deps/npm/man/man1/npm-explain.1 | 11 - deps/npm/man/man1/npm-explore.1 | 8 - deps/npm/man/man1/npm-find-dupes.1 | 43 +- deps/npm/man/man1/npm-fund.1 | 23 +- deps/npm/man/man1/npm-help-search.1 | 8 - deps/npm/man/man1/npm-help.1 | 10 +- deps/npm/man/man1/npm-hook.1 | 15 +- deps/npm/man/man1/npm-init.1 | 42 +- deps/npm/man/man1/npm-install-ci-test.1 | 16 +- deps/npm/man/man1/npm-install-test.1 | 81 +-- deps/npm/man/man1/npm-install.1 | 82 +-- deps/npm/man/man1/npm-link.1 | 66 +- deps/npm/man/man1/npm-logout.1 | 13 +- deps/npm/man/man1/npm-ls.1 | 48 +- deps/npm/man/man1/npm-org.1 | 25 +- deps/npm/man/man1/npm-outdated.1 | 23 - deps/npm/man/man1/npm-owner.1 | 13 +- deps/npm/man/man1/npm-pack.1 | 25 +- deps/npm/man/man1/npm-ping.1 | 10 +- deps/npm/man/man1/npm-pkg.1 | 22 +- deps/npm/man/man1/npm-prefix.1 | 8 - deps/npm/man/man1/npm-profile.1 | 24 +- deps/npm/man/man1/npm-prune.1 | 25 +- deps/npm/man/man1/npm-publish.1 | 31 +- deps/npm/man/man1/npm-rebuild.1 | 23 - deps/npm/man/man1/npm-repo.1 | 17 - deps/npm/man/man1/npm-restart.1 | 11 - deps/npm/man/man1/npm-root.1 | 10 +- deps/npm/man/man1/npm-run-script.1 | 27 +- deps/npm/man/man1/npm-search.1 | 40 +- deps/npm/man/man1/npm-set-script.1 | 14 - deps/npm/man/man1/npm-star.1 | 11 - deps/npm/man/man1/npm-stars.1 | 8 - deps/npm/man/man1/npm-start.1 | 11 - deps/npm/man/man1/npm-stop.1 | 11 - deps/npm/man/man1/npm-team.1 | 27 +- deps/npm/man/man1/npm-test.1 | 13 +- deps/npm/man/man1/npm-token.1 | 23 +- deps/npm/man/man1/npm-uninstall.1 | 30 +- deps/npm/man/man1/npm-unpublish.1 | 17 - deps/npm/man/man1/npm-unstar.1 | 14 - deps/npm/man/man1/npm-update.1 | 67 +- deps/npm/man/man1/npm-version.1 | 38 +- deps/npm/man/man1/npm-view.1 | 21 +- deps/npm/man/man1/npm-whoami.1 | 10 +- deps/npm/man/man1/npm.1 | 8 +- deps/npm/man/man1/npx.1 | 17 +- deps/npm/man/man7/config.7 | 446 -------------- deps/npm/man/man7/scripts.7 | 6 + .../node_modules/@npmcli/arborist/README.md | 10 + .../@npmcli/arborist/bin/actual.js | 36 +- .../@npmcli/arborist/bin/audit.js | 49 +- .../@npmcli/arborist/bin/funding.js | 66 +- .../@npmcli/arborist/bin/ideal.js | 29 +- .../@npmcli/arborist/bin/index.js | 155 +++-- .../@npmcli/arborist/bin/lib/logging.js | 88 ++- .../@npmcli/arborist/bin/lib/options.js | 170 +++-- .../@npmcli/arborist/bin/lib/print-tree.js | 5 +- .../@npmcli/arborist/bin/lib/timers.js | 32 +- .../@npmcli/arborist/bin/license.js | 78 ++- .../@npmcli/arborist/bin/prune.js | 43 +- .../@npmcli/arborist/bin/reify.js | 43 +- .../@npmcli/arborist/bin/shrinkwrap.js | 15 +- .../@npmcli/arborist/bin/virtual.js | 26 +- .../@npmcli/arborist/lib/add-rm-pkg-deps.js | 23 +- .../arborist/lib/arborist/build-ideal-tree.js | 25 +- .../@npmcli/arborist/lib/arborist/index.js | 4 +- .../@npmcli/arborist/lib/arborist/rebuild.js | 7 +- .../@npmcli/arborist/lib/arborist/reify.js | 21 +- .../@npmcli/arborist/lib/audit-report.js | 13 +- .../arborist/lib/get-workspace-nodes.js | 5 +- .../@npmcli/arborist/lib/shrinkwrap.js | 12 +- .../@npmcli/arborist/lib/tracker.js | 23 +- .../@npmcli/arborist/package.json | 18 +- .../@npmcli/config/lib/env-replace.js | 2 +- .../node_modules/@npmcli/config/lib/index.js | 15 +- .../@npmcli/config/lib/proc-log.js | 4 - .../node_modules/@npmcli/config/package.json | 11 +- .../npm/node_modules/@npmcli/git/lib/clone.js | 24 +- .../node_modules/@npmcli/git/lib/errors.js | 2 +- .../npm/node_modules/@npmcli/git/lib/index.js | 2 +- .../@npmcli/git/lib/lines-to-revs.js | 14 +- .../@npmcli/git/lib/make-error.js | 4 +- deps/npm/node_modules/@npmcli/git/lib/opts.js | 4 +- .../node_modules/@npmcli/git/lib/proc-log.js | 21 - deps/npm/node_modules/@npmcli/git/lib/revs.js | 2 +- .../npm/node_modules/@npmcli/git/lib/spawn.js | 9 +- .../git/node_modules/lru-cache/LICENSE | 15 + .../git/node_modules/lru-cache/index.js | 581 ++++++++++++++++++ .../git/node_modules/lru-cache/package.json | 34 + .../npm/node_modules/@npmcli/git/package.json | 29 +- .../metavuln-calculator/lib/advisory.js | 94 ++- .../@npmcli/metavuln-calculator/lib/hash.js | 4 +- .../@npmcli/metavuln-calculator/lib/index.js | 14 +- .../@npmcli/metavuln-calculator/package.json | 28 +- .../@npmcli/run-script/lib/make-spawn-args.js | 2 +- .../@npmcli/run-script/lib/package-envs.js | 7 +- .../@npmcli/run-script/lib/run-script-pkg.js | 26 +- .../@npmcli/run-script/lib/run-script.js | 4 +- .../@npmcli/run-script/lib/set-path.js | 5 +- .../@npmcli/run-script/lib/signal-manager.js | 7 +- .../run-script/lib/validate-options.js | 24 +- .../@npmcli/run-script/package.json | 36 +- deps/npm/node_modules/ansi-regex/index.js | 4 - deps/npm/node_modules/ansi-regex/license | 21 - deps/npm/node_modules/ansi-regex/package.json | 64 -- deps/npm/node_modules/ansi-regex/readme.md | 39 -- .../is-fullwidth-code-point/index.js | 50 -- .../is-fullwidth-code-point/package.json | 42 -- .../node_modules/string-width/index.js | 47 -- .../node_modules/string-width/package.json | 56 -- .../node_modules/ansi-regex/license | 9 - .../node_modules/ansi-regex/readme.md | 78 --- .../is-fullwidth-code-point/index.d.ts | 17 - .../is-fullwidth-code-point/index.js | 50 -- .../is-fullwidth-code-point/license | 9 - .../is-fullwidth-code-point/package.json | 42 -- .../is-fullwidth-code-point/readme.md | 39 -- .../node_modules/string-width/index.d.ts | 29 - .../node_modules/string-width/index.js | 47 -- .../node_modules/string-width/license | 9 - .../node_modules/string-width/package.json | 56 -- .../node_modules/string-width/readme.md | 50 -- .../node_modules/strip-ansi/license | 9 - .../node_modules/strip-ansi/readme.md | 46 -- deps/npm/node_modules/columnify/Readme.md | 49 +- deps/npm/node_modules/columnify/columnify.js | 22 +- .../node_modules/ansi-regex/index.d.ts | 0 .../node_modules/ansi-regex/index.js | 2 +- .../node_modules/ansi-regex}/license | 0 .../node_modules/ansi-regex/package.json | 2 +- .../node_modules/strip-ansi/index.d.ts | 0 .../node_modules/strip-ansi/index.js | 0 .../node_modules/strip-ansi}/license | 0 .../node_modules/strip-ansi/package.json | 4 +- deps/npm/node_modules/columnify/package.json | 12 +- .../is-fullwidth-code-point/index.d.ts | 17 - .../is-fullwidth-code-point/index.js | 50 -- .../is-fullwidth-code-point/license | 9 - .../is-fullwidth-code-point/package.json | 42 -- .../node_modules/string-width/index.d.ts | 29 - .../gauge/node_modules/string-width/index.js | 47 -- .../gauge/node_modules/string-width/license | 9 - .../node_modules/string-width/package.json | 56 -- .../lib/init-package-json.js | 2 +- .../init-package-json/package.json | 21 +- .../is-fullwidth-code-point/index.d.ts | 0 .../is-fullwidth-code-point/index.js | 46 +- .../is-fullwidth-code-point/license | 20 +- .../is-fullwidth-code-point/package.json | 83 ++- .../is-fullwidth-code-point/readme.md | 12 +- .../node_modules/libnpmaccess/package.json | 6 +- deps/npm/node_modules/libnpmdiff/package.json | 6 +- deps/npm/node_modules/libnpmexec/README.md | 1 - deps/npm/node_modules/libnpmexec/lib/index.js | 9 +- .../node_modules/libnpmexec/lib/run-script.js | 11 +- deps/npm/node_modules/libnpmexec/package.json | 13 +- deps/npm/node_modules/libnpmfund/package.json | 4 +- deps/npm/node_modules/libnpmhook/package.json | 4 +- deps/npm/node_modules/libnpmorg/package.json | 4 +- deps/npm/node_modules/libnpmpack/lib/index.js | 2 +- deps/npm/node_modules/libnpmpack/package.json | 8 +- .../node_modules/libnpmpublish/lib/publish.js | 2 +- .../node_modules/libnpmpublish/package.json | 8 +- .../node_modules/libnpmsearch/package.json | 4 +- deps/npm/node_modules/libnpmteam/package.json | 4 +- deps/npm/node_modules/libnpmversion/README.md | 1 + .../libnpmversion/lib/enforce-clean.js | 3 +- .../node_modules/libnpmversion/lib/index.js | 5 +- .../node_modules/libnpmversion/lib/version.js | 9 +- .../node_modules/libnpmversion/package.json | 7 +- .../npm-package-arg/{ => lib}/npa.js | 98 +-- .../node_modules/npm-package-arg/package.json | 33 +- .../npm-pick-manifest/{ => lib}/index.js | 14 +- .../npm-pick-manifest/package.json | 35 +- .../npm/node_modules/npm-profile/lib/index.js | 19 +- .../npm/node_modules/npm-profile/package.json | 16 +- .../npm-registry-fetch/lib/check-response.js | 13 +- .../npm-registry-fetch/lib/default-opts.js | 1 - .../npm-registry-fetch/package.json | 8 +- deps/npm/node_modules/pacote/README.md | 9 +- deps/npm/node_modules/pacote/lib/bin.js | 30 +- deps/npm/node_modules/pacote/lib/dir.js | 17 +- deps/npm/node_modules/pacote/lib/fetcher.js | 101 +-- deps/npm/node_modules/pacote/lib/file.js | 41 +- deps/npm/node_modules/pacote/lib/git.js | 94 +-- deps/npm/node_modules/pacote/lib/registry.js | 39 +- deps/npm/node_modules/pacote/lib/remote.js | 8 +- .../node_modules/pacote/lib/util/cache-dir.js | 2 +- .../pacote/lib/util/is-package-bin.js | 7 +- deps/npm/node_modules/pacote/lib/util/npm.js | 1 - .../node_modules/pacote/lib/util/proc-log.js | 21 - .../pacote/lib/util/tar-create-options.js | 5 +- .../pacote/lib/util/trailing-slashes.js | 10 + deps/npm/node_modules/pacote/package.json | 47 +- deps/npm/node_modules/proc-log/index.js | 22 - .../lib/proc-log.js => proc-log/lib/index.js} | 4 +- deps/npm/node_modules/proc-log/package.json | 30 +- .../node_modules => }/string-width/index.d.ts | 0 deps/npm/node_modules/string-width/index.js | 21 +- .../node_modules/ansi-regex/index.d.ts | 37 ++ .../node_modules/ansi-regex/index.js | 8 +- .../node_modules/ansi-regex/package.json | 104 ++-- .../node_modules/ansi-regex/readme.md | 38 +- .../node_modules/strip-ansi/index.d.ts | 17 + .../node_modules/strip-ansi/index.js | 2 +- .../node_modules/strip-ansi/package.json | 102 +-- .../node_modules/strip-ansi/readme.md | 17 +- .../node_modules/string-width/package.json | 21 +- deps/npm/node_modules/string-width/readme.md | 22 +- deps/npm/node_modules/strip-ansi/index.js | 6 - deps/npm/node_modules/strip-ansi/license | 21 - deps/npm/node_modules/strip-ansi/package.json | 57 -- deps/npm/node_modules/strip-ansi/readme.md | 33 - deps/npm/package.json | 46 +- .../test/lib/utils/exit-handler.js.test.cjs | 8 +- deps/npm/test/fixtures/mock-npm.js | 53 +- deps/npm/test/fixtures/sandbox.js | 45 +- deps/npm/test/lib/commands/access.js | 5 +- deps/npm/test/lib/commands/adduser.js | 7 - deps/npm/test/lib/commands/deprecate.js | 7 - deps/npm/test/lib/commands/diff.js | 3 +- deps/npm/test/lib/commands/dist-tag.js | 10 - deps/npm/test/lib/commands/doctor.js | 12 +- deps/npm/test/lib/commands/hook.js | 47 +- deps/npm/test/lib/commands/logout.js | 9 +- deps/npm/test/lib/commands/org.js | 41 +- deps/npm/test/lib/commands/owner.js | 26 +- deps/npm/test/lib/commands/ping.js | 9 +- deps/npm/test/lib/commands/publish.js | 60 +- deps/npm/test/lib/commands/run-script.js | 28 +- deps/npm/test/lib/commands/star.js | 6 +- deps/npm/test/lib/commands/team.js | 21 +- deps/npm/test/lib/commands/unpublish.js | 7 +- deps/npm/test/lib/commands/update.js | 10 +- deps/npm/test/lib/utils/config/definitions.js | 9 + deps/npm/test/lib/utils/exit-handler.js | 6 +- deps/npm/test/lib/utils/reify-output.js | 11 +- deps/npm/test/lib/utils/update-notifier.js | 3 +- 421 files changed, 3967 insertions(+), 4906 deletions(-) delete mode 100644 deps/npm/node_modules/@npmcli/config/lib/proc-log.js delete mode 100644 deps/npm/node_modules/@npmcli/git/lib/proc-log.js create mode 100644 deps/npm/node_modules/@npmcli/git/node_modules/lru-cache/LICENSE create mode 100644 deps/npm/node_modules/@npmcli/git/node_modules/lru-cache/index.js create mode 100644 deps/npm/node_modules/@npmcli/git/node_modules/lru-cache/package.json delete mode 100644 deps/npm/node_modules/ansi-regex/index.js delete mode 100644 deps/npm/node_modules/ansi-regex/license delete mode 100644 deps/npm/node_modules/ansi-regex/package.json delete mode 100644 deps/npm/node_modules/ansi-regex/readme.md delete mode 100644 deps/npm/node_modules/cli-columns/node_modules/is-fullwidth-code-point/index.js delete mode 100644 deps/npm/node_modules/cli-columns/node_modules/is-fullwidth-code-point/package.json delete mode 100644 deps/npm/node_modules/cli-columns/node_modules/string-width/index.js delete mode 100644 deps/npm/node_modules/cli-columns/node_modules/string-width/package.json delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/ansi-regex/license delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/ansi-regex/readme.md delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/is-fullwidth-code-point/index.d.ts delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/is-fullwidth-code-point/index.js delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/is-fullwidth-code-point/license delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/is-fullwidth-code-point/package.json delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/is-fullwidth-code-point/readme.md delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/string-width/index.d.ts delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/string-width/index.js delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/string-width/license delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/string-width/package.json delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/string-width/readme.md delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/strip-ansi/license delete mode 100644 deps/npm/node_modules/cli-table3/node_modules/strip-ansi/readme.md rename deps/npm/node_modules/{cli-table3 => columnify}/node_modules/ansi-regex/index.d.ts (100%) rename deps/npm/node_modules/{cli-table3 => columnify}/node_modules/ansi-regex/index.js (62%) rename deps/npm/node_modules/{cli-columns/node_modules/is-fullwidth-code-point => columnify/node_modules/ansi-regex}/license (100%) rename deps/npm/node_modules/{cli-table3 => columnify}/node_modules/ansi-regex/package.json (97%) rename deps/npm/node_modules/{cli-table3 => columnify}/node_modules/strip-ansi/index.d.ts (100%) rename deps/npm/node_modules/{cli-table3 => columnify}/node_modules/strip-ansi/index.js (100%) rename deps/npm/node_modules/{cli-columns/node_modules/string-width => columnify/node_modules/strip-ansi}/license (100%) rename deps/npm/node_modules/{cli-table3 => columnify}/node_modules/strip-ansi/package.json (94%) delete mode 100644 deps/npm/node_modules/gauge/node_modules/is-fullwidth-code-point/index.d.ts delete mode 100644 deps/npm/node_modules/gauge/node_modules/is-fullwidth-code-point/index.js delete mode 100644 deps/npm/node_modules/gauge/node_modules/is-fullwidth-code-point/license delete mode 100644 deps/npm/node_modules/gauge/node_modules/is-fullwidth-code-point/package.json delete mode 100644 deps/npm/node_modules/gauge/node_modules/string-width/index.d.ts delete mode 100644 deps/npm/node_modules/gauge/node_modules/string-width/index.js delete mode 100644 deps/npm/node_modules/gauge/node_modules/string-width/license delete mode 100644 deps/npm/node_modules/gauge/node_modules/string-width/package.json rename deps/npm/node_modules/{cli-columns/node_modules => }/is-fullwidth-code-point/index.d.ts (100%) rename deps/npm/node_modules/npm-package-arg/{ => lib}/npa.js (86%) rename deps/npm/node_modules/npm-pick-manifest/{ => lib}/index.js (96%) delete mode 100644 deps/npm/node_modules/pacote/lib/util/proc-log.js create mode 100644 deps/npm/node_modules/pacote/lib/util/trailing-slashes.js delete mode 100644 deps/npm/node_modules/proc-log/index.js rename deps/npm/node_modules/{libnpmversion/lib/proc-log.js => proc-log/lib/index.js} (92%) rename deps/npm/node_modules/{cli-columns/node_modules => }/string-width/index.d.ts (100%) create mode 100644 deps/npm/node_modules/string-width/node_modules/ansi-regex/index.d.ts create mode 100644 deps/npm/node_modules/string-width/node_modules/strip-ansi/index.d.ts delete mode 100644 deps/npm/node_modules/strip-ansi/index.js delete mode 100644 deps/npm/node_modules/strip-ansi/license delete mode 100644 deps/npm/node_modules/strip-ansi/package.json delete mode 100644 deps/npm/node_modules/strip-ansi/readme.md diff --git a/deps/npm/docs/content/commands/npm-access.md b/deps/npm/docs/content/commands/npm-access.md index 1f661c911f47dc..162e94f1fec029 100644 --- a/deps/npm/docs/content/commands/npm-access.md +++ b/deps/npm/docs/content/commands/npm-access.md @@ -6,21 +6,27 @@ description: Set access level on published packages ### Synopsis + + + + ```bash npm access public [] npm access restricted [] - npm access grant [] npm access revoke [] - npm access 2fa-required [] npm access 2fa-not-required [] - npm access ls-packages [||] npm access ls-collaborators [ []] npm access edit [] ``` + + + + + ### Description Used to set access controls on private packages. diff --git a/deps/npm/docs/content/commands/npm-adduser.md b/deps/npm/docs/content/commands/npm-adduser.md index 21a31ca940e524..06eeb379c4dd88 100644 --- a/deps/npm/docs/content/commands/npm-adduser.md +++ b/deps/npm/docs/content/commands/npm-adduser.md @@ -6,12 +6,21 @@ description: Add a registry user account ### Synopsis + + + + ```bash -npm adduser [--registry=url] [--scope=@orgname] [--auth-type=legacy] +npm adduser aliases: login, add-user ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-audit.md b/deps/npm/docs/content/commands/npm-audit.md index 58c614d793db29..323d38f64c14f9 100644 --- a/deps/npm/docs/content/commands/npm-audit.md +++ b/deps/npm/docs/content/commands/npm-audit.md @@ -6,13 +6,19 @@ description: Run a security audit ### Synopsis -```bash -npm audit [--json] [--production] [--audit-level=(low|moderate|high|critical)] -npm audit fix [--force|--package-lock-only|--dry-run|--production|--only=(dev|prod)] + + + -common options: [--production] [--only=(dev|prod)] +```bash +npm audit [fix] ``` + + + + + ### Description The audit command submits a description of the dependencies configured in diff --git a/deps/npm/docs/content/commands/npm-bin.md b/deps/npm/docs/content/commands/npm-bin.md index 2d7c1d5b8149ee..94b72cfd5c81ce 100644 --- a/deps/npm/docs/content/commands/npm-bin.md +++ b/deps/npm/docs/content/commands/npm-bin.md @@ -6,10 +6,19 @@ description: Display npm bin folder ### Synopsis + + + + ```bash -npm bin [-g|--global] +npm bin ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-bugs.md b/deps/npm/docs/content/commands/npm-bugs.md index f92241a14b95c0..aeddeb848e81b8 100644 --- a/deps/npm/docs/content/commands/npm-bugs.md +++ b/deps/npm/docs/content/commands/npm-bugs.md @@ -6,12 +6,21 @@ description: Report bugs for a package in a web browser ### Synopsis + + + + ```bash -npm bugs [ [ ...]] +npm bugs [] -aliases: issues +alias: issues ``` + + + + + ### Description This command tries to guess at the likely location of a package's bug diff --git a/deps/npm/docs/content/commands/npm-cache.md b/deps/npm/docs/content/commands/npm-cache.md index 6497a3988c9387..091e26e8a71828 100644 --- a/deps/npm/docs/content/commands/npm-cache.md +++ b/deps/npm/docs/content/commands/npm-cache.md @@ -6,18 +6,26 @@ description: Manipulates packages cache ### Synopsis -```bash -npm cache add ... -npm cache add ... -npm cache add ... -npm cache add @... - -npm cache clean -aliases: npm cache clear, npm cache rm + + + +```bash +npm cache add +npm cache add +npm cache add +npm cache add +npm cache add @ +npm cache clean [] +npm cache ls [@] npm cache verify ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-ci.md b/deps/npm/docs/content/commands/npm-ci.md index 1ce50c66d5fafa..4490fea9a0bb74 100644 --- a/deps/npm/docs/content/commands/npm-ci.md +++ b/deps/npm/docs/content/commands/npm-ci.md @@ -6,10 +6,21 @@ description: Install a project with a clean slate ### Synopsis + + + + ```bash npm ci + +aliases: clean-install, ic, install-clean, isntall-clean ``` + + + + + ### Description This command is similar to [`npm install`](/commands/npm-install), except diff --git a/deps/npm/docs/content/commands/npm-completion.md b/deps/npm/docs/content/commands/npm-completion.md index 9dbd960913f270..d73a98f2e50f78 100644 --- a/deps/npm/docs/content/commands/npm-completion.md +++ b/deps/npm/docs/content/commands/npm-completion.md @@ -6,10 +6,19 @@ description: Tab Completion for npm ### Synopsis + + + + ```bash -source <(npm completion) +npm completion ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-config.md b/deps/npm/docs/content/commands/npm-config.md index 2d77f045cbc472..a66a198ce42d17 100644 --- a/deps/npm/docs/content/commands/npm-config.md +++ b/deps/npm/docs/content/commands/npm-config.md @@ -6,18 +6,25 @@ description: Manage the npm configuration files ### Synopsis + + + + ```bash npm config set = [= ...] npm config get [ [ ...]] npm config delete [ ...] npm config list [--json] npm config edit -npm set = [= ...] -npm get [ [ ...]] alias: c ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-dedupe.md b/deps/npm/docs/content/commands/npm-dedupe.md index 53d2e64272a67b..b5a64831c0bbaa 100644 --- a/deps/npm/docs/content/commands/npm-dedupe.md +++ b/deps/npm/docs/content/commands/npm-dedupe.md @@ -6,13 +6,21 @@ description: Reduce duplication in the package tree ### Synopsis + + + + ```bash npm dedupe -npm ddp -aliases: ddp +alias: ddp ``` + + + + + ### Description Searches the local package tree and attempts to simplify the overall @@ -145,6 +153,24 @@ When package package-locks are disabled, automatic pruning of extraneous modules will also be disabled. To remove extraneous modules with package-locks disabled use `npm prune`. +This configuration does not affect `npm ci`. + + + + +#### `save` + +* Default: `true` unless when using `npm update` or `npm dedupe` where it + defaults to `false` +* Type: Boolean + +Save installed packages to a `package.json` file as dependencies. + +When used with the `npm rm` command, removes the dependency from +`package.json`. + +Will also prevent writing to `package-lock.json` if set to `false`. + diff --git a/deps/npm/docs/content/commands/npm-deprecate.md b/deps/npm/docs/content/commands/npm-deprecate.md index 438a54ec6e4f36..4345120d3744b3 100644 --- a/deps/npm/docs/content/commands/npm-deprecate.md +++ b/deps/npm/docs/content/commands/npm-deprecate.md @@ -6,10 +6,19 @@ description: Deprecate a version of a package ### Synopsis + + + + ```bash -npm deprecate [@] +npm deprecate [@] ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-diff.md b/deps/npm/docs/content/commands/npm-diff.md index 8d05df779f3ca5..c4c9eafdb3524d 100644 --- a/deps/npm/docs/content/commands/npm-diff.md +++ b/deps/npm/docs/content/commands/npm-diff.md @@ -6,14 +6,19 @@ description: The registry diff command ### Synopsis + + + + ```bash npm diff [...] -npm diff --diff= [...] -npm diff --diff= [--diff=] [...] -npm diff --diff= [--diff=] [...] -npm diff [--diff-ignore-all-space] [--diff-name-only] [...] ``` + + + + + ### Description Similar to its `git diff` counterpart, this command will print diff patches diff --git a/deps/npm/docs/content/commands/npm-dist-tag.md b/deps/npm/docs/content/commands/npm-dist-tag.md index a4e0243aac87b3..a0f306cd4970d5 100644 --- a/deps/npm/docs/content/commands/npm-dist-tag.md +++ b/deps/npm/docs/content/commands/npm-dist-tag.md @@ -6,14 +6,23 @@ description: Modify package distribution tags ### Synopsis + + + + ```bash npm dist-tag add @ [] npm dist-tag rm npm dist-tag ls [] -aliases: dist-tags +alias: dist-tags ``` + + + + + ### Description Add, remove, and enumerate distribution tags on a package: diff --git a/deps/npm/docs/content/commands/npm-docs.md b/deps/npm/docs/content/commands/npm-docs.md index 970d17aa829c6e..8d5a278286a88b 100644 --- a/deps/npm/docs/content/commands/npm-docs.md +++ b/deps/npm/docs/content/commands/npm-docs.md @@ -6,12 +6,21 @@ description: Open documentation for a package in a web browser ### Synopsis + + + + ```bash npm docs [ [ ...]] -aliases: home +alias: home ``` + + + + + ### Description This command tries to guess at the likely location of a package's diff --git a/deps/npm/docs/content/commands/npm-doctor.md b/deps/npm/docs/content/commands/npm-doctor.md index 0cce60c7b7b157..7fb63bab16e835 100644 --- a/deps/npm/docs/content/commands/npm-doctor.md +++ b/deps/npm/docs/content/commands/npm-doctor.md @@ -6,10 +6,19 @@ description: Check your npm environment ### Synopsis + + + + ```bash npm doctor ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-edit.md b/deps/npm/docs/content/commands/npm-edit.md index 5ae7f2481ae456..39fc49592c571c 100644 --- a/deps/npm/docs/content/commands/npm-edit.md +++ b/deps/npm/docs/content/commands/npm-edit.md @@ -6,10 +6,19 @@ description: Edit an installed package ### Synopsis + + + + ```bash -npm edit +npm edit [/...] ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-exec.md b/deps/npm/docs/content/commands/npm-exec.md index d154f5780b9c9c..3645e336b9da97 100644 --- a/deps/npm/docs/content/commands/npm-exec.md +++ b/deps/npm/docs/content/commands/npm-exec.md @@ -6,26 +6,23 @@ description: Run a command from a local or remote npm package ### Synopsis + + + + ```bash npm exec -- [@] [args...] npm exec --package=[@] -- [args...] npm exec -c ' [args...]' npm exec --package=foo -c ' [args...]' -npm exec [--ws] [-w [@] [args...] -npx -p [@] [args...] -npx -c ' [args...]' -npx -p [@] -c ' [args...]' -Run without --call or positional args to open interactive subshell +alias: x +``` -alias: npm x, npx + + -common options: ---package= (may be specified multiple times) --p is a shorthand for --package only when using npx executable --c --call= (may not be mixed with positional arguments) -``` + ### Description diff --git a/deps/npm/docs/content/commands/npm-explain.md b/deps/npm/docs/content/commands/npm-explain.md index 5f05cac0f906b0..765221056585d9 100644 --- a/deps/npm/docs/content/commands/npm-explain.md +++ b/deps/npm/docs/content/commands/npm-explain.md @@ -6,12 +6,21 @@ description: Explain installed packages ### Synopsis + + + + ```bash npm explain alias: why ``` + + + + + ### Description This command will print the chain of dependencies causing a given package diff --git a/deps/npm/docs/content/commands/npm-explore.md b/deps/npm/docs/content/commands/npm-explore.md index 3979da9573db00..90753c7e09199f 100644 --- a/deps/npm/docs/content/commands/npm-explore.md +++ b/deps/npm/docs/content/commands/npm-explore.md @@ -6,10 +6,19 @@ description: Browse an installed package ### Synopsis + + + + ```bash npm explore [ -- ] ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-find-dupes.md b/deps/npm/docs/content/commands/npm-find-dupes.md index f7dc84f9c5306d..f7366fa6375d1e 100644 --- a/deps/npm/docs/content/commands/npm-find-dupes.md +++ b/deps/npm/docs/content/commands/npm-find-dupes.md @@ -6,10 +6,19 @@ description: Find duplication in the package tree ### Synopsis + + + + ```bash npm find-dupes ``` + + + + + ### Description Runs `npm dedupe` in `--dry-run` mode, making npm only output the @@ -82,6 +91,8 @@ When package package-locks are disabled, automatic pruning of extraneous modules will also be disabled. To remove extraneous modules with package-locks disabled use `npm prune`. +This configuration does not affect `npm ci`. + diff --git a/deps/npm/docs/content/commands/npm-fund.md b/deps/npm/docs/content/commands/npm-fund.md index 606b0a188c5549..5b96e91ab8ccb9 100644 --- a/deps/npm/docs/content/commands/npm-fund.md +++ b/deps/npm/docs/content/commands/npm-fund.md @@ -6,11 +6,19 @@ description: Retrieve funding information ### Synopsis + + + + ```bash -npm fund [] -npm fund [-w ] +npm fund [[<@scope>/]] ``` + + + + + ### Description This command retrieves information on how to fund the dependencies of a diff --git a/deps/npm/docs/content/commands/npm-help-search.md b/deps/npm/docs/content/commands/npm-help-search.md index 78553a14ecb01d..152f9f6bec16f1 100644 --- a/deps/npm/docs/content/commands/npm-help-search.md +++ b/deps/npm/docs/content/commands/npm-help-search.md @@ -6,10 +6,19 @@ description: Search npm help documentation ### Synopsis + + + + ```bash npm help-search ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-help.md b/deps/npm/docs/content/commands/npm-help.md index a8002eef17156c..83c595db696b9c 100644 --- a/deps/npm/docs/content/commands/npm-help.md +++ b/deps/npm/docs/content/commands/npm-help.md @@ -6,10 +6,21 @@ description: Get help on npm ### Synopsis + + + + ```bash npm help [] + +alias: hlep ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-hook.md b/deps/npm/docs/content/commands/npm-hook.md index c91bce3075e7b2..4a9805d02f9d43 100644 --- a/deps/npm/docs/content/commands/npm-hook.md +++ b/deps/npm/docs/content/commands/npm-hook.md @@ -6,13 +6,22 @@ description: Manage registry hooks ### Synopsis + + + + ```bash +npm hook add [--type=] npm hook ls [pkg] -npm hook add -npm hook update [secret] npm hook rm +npm hook update ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-init.md b/deps/npm/docs/content/commands/npm-init.md index a608061a96d8dc..d9c03aef41504b 100644 --- a/deps/npm/docs/content/commands/npm-init.md +++ b/deps/npm/docs/content/commands/npm-init.md @@ -6,13 +6,23 @@ description: Create a package.json file ### Synopsis + + + + ```bash -npm init [--yes|-y|--scope] -npm init <@scope> (same as `npm exec <@scope>/create`) -npm init [<@scope>/] (same as `npm exec [<@scope>/]create-`) -npm init [-w ] [args...] +npm init [--force|-f|--yes|-y|--scope] +npm init <@scope> (same as `npx <@scope>/create`) +npm init [<@scope>/] (same as `npx [<@scope>/]create-`) + +aliases: create, innit ``` + + + + + ### Description `npm init ` can be used to set up a new or existing npm @@ -38,6 +48,15 @@ strictly additive, so it will keep any fields and values that were already set. You can also use `-y`/`--yes` to skip the questionnaire altogether. If you pass `--scope`, it will create a scoped package. +*Note:* if a user already has the `create-` package +globally installed, that will be what `npm init` uses. If you want npm +to use the latest version, or another specific version you must specify +it: + +* `npm init foo@latest` # fetches and runs the latest `create-foo` from + the registry +* `npm init foo@1.2.3` # runs `create-foo@1.2.3` specifically + #### Forwarding additional options Any additional options will be passed directly to the command, so `npm init diff --git a/deps/npm/docs/content/commands/npm-install-ci-test.md b/deps/npm/docs/content/commands/npm-install-ci-test.md index 5c37ed8f56128b..5ad67604541d1e 100644 --- a/deps/npm/docs/content/commands/npm-install-ci-test.md +++ b/deps/npm/docs/content/commands/npm-install-ci-test.md @@ -6,12 +6,21 @@ description: Install a project with a clean slate and run tests ### Synopsis + + + + ```bash npm install-ci-test -alias: npm cit +alias: cit ``` + + + + + ### Description This command runs `npm ci` followed immediately by `npm test`. diff --git a/deps/npm/docs/content/commands/npm-install-test.md b/deps/npm/docs/content/commands/npm-install-test.md index c464e5bd0b8c64..ed39c6705a4848 100644 --- a/deps/npm/docs/content/commands/npm-install-test.md +++ b/deps/npm/docs/content/commands/npm-install-test.md @@ -6,20 +6,30 @@ description: Install package(s) and run tests ### Synopsis + + + + ```bash -npm install-test (with no args, in package dir) -npm install-test [<@scope>/] -npm install-test [<@scope>/]@ -npm install-test [<@scope>/]@ -npm install-test [<@scope>/]@ +npm install-test [<@scope>/] +npm install-test [<@scope>/]@ +npm install-test [<@scope>/]@ +npm install-test [<@scope>/]@ +npm install-test @npm: +npm install-test npm install-test npm install-test -npm install-test +npm install-test +npm install-test / -alias: npm it -common options: [--save|--save-dev|--save-optional] [--save-exact] [--dry-run] +alias: it ``` + + + + + ### Description This command runs an `npm install` followed immediately by an `npm test`. It @@ -32,13 +42,16 @@ takes exactly the same arguments as `npm install`. #### `save` -* Default: true +* Default: `true` unless when using `npm update` or `npm dedupe` where it + defaults to `false` * Type: Boolean -Save installed packages to a package.json file as dependencies. +Save installed packages to a `package.json` file as dependencies. When used with the `npm rm` command, removes the dependency from -package.json. +`package.json`. + +Will also prevent writing to `package-lock.json` if set to `false`. @@ -133,6 +146,8 @@ When package package-locks are disabled, automatic pruning of extraneous modules will also be disabled. To remove extraneous modules with package-locks disabled use `npm prune`. +This configuration does not affect `npm ci`. + diff --git a/deps/npm/docs/content/commands/npm-install.md b/deps/npm/docs/content/commands/npm-install.md index f83ff511991b70..6f12e5f5389973 100644 --- a/deps/npm/docs/content/commands/npm-install.md +++ b/deps/npm/docs/content/commands/npm-install.md @@ -6,23 +6,30 @@ description: Install a package ### Synopsis + + + + ```bash -npm install (with no args, in package dir) -npm install [<@scope>/] -npm install [<@scope>/]@ -npm install [<@scope>/]@ -npm install [<@scope>/]@ +npm install [<@scope>/] +npm install [<@scope>/]@ +npm install [<@scope>/]@ +npm install [<@scope>/]@ npm install @npm: -npm install :/ -npm install +npm install npm install npm install -npm install +npm install +npm install / -aliases: npm i, npm add -common options: [-P|--save-prod|-D|--save-dev|-O|--save-optional|--save-peer] [-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run] +aliases: i, in, ins, inst, insta, instal, isnt, isnta, isntal, add ``` + + + + + ### Description This command installs a package and any packages that it depends on. If the @@ -425,13 +432,16 @@ These are some of the most common options related to installation. #### `save` -* Default: true +* Default: `true` unless when using `npm update` or `npm dedupe` where it + defaults to `false` * Type: Boolean -Save installed packages to a package.json file as dependencies. +Save installed packages to a `package.json` file as dependencies. When used with the `npm rm` command, removes the dependency from -package.json. +`package.json`. + +Will also prevent writing to `package-lock.json` if set to `false`. @@ -526,6 +536,8 @@ When package package-locks are disabled, automatic pruning of extraneous modules will also be disabled. To remove extraneous modules with package-locks disabled use `npm prune`. +This configuration does not affect `npm ci`. + diff --git a/deps/npm/docs/content/commands/npm-link.md b/deps/npm/docs/content/commands/npm-link.md index d4ef41ae964628..892b55496c9b6f 100644 --- a/deps/npm/docs/content/commands/npm-link.md +++ b/deps/npm/docs/content/commands/npm-link.md @@ -6,13 +6,22 @@ description: Symlink a package folder ### Synopsis + + + + ```bash npm link (in package dir) npm link [<@scope>/][@] -alias: npm ln +alias: ln ``` + + + + + ### Description This is handy for installing your own stuff, so that you can work on it and @@ -116,13 +125,16 @@ workspace(s). #### `save` -* Default: true +* Default: `true` unless when using `npm update` or `npm dedupe` where it + defaults to `false` * Type: Boolean -Save installed packages to a package.json file as dependencies. +Save installed packages to a `package.json` file as dependencies. When used with the `npm rm` command, removes the dependency from -package.json. +`package.json`. + +Will also prevent writing to `package-lock.json` if set to `false`. @@ -217,6 +229,8 @@ When package package-locks are disabled, automatic pruning of extraneous modules will also be disabled. To remove extraneous modules with package-locks disabled use `npm prune`. +This configuration does not affect `npm ci`. + diff --git a/deps/npm/docs/content/commands/npm-logout.md b/deps/npm/docs/content/commands/npm-logout.md index cb7c8496fb4791..f0dd5cb856eaee 100644 --- a/deps/npm/docs/content/commands/npm-logout.md +++ b/deps/npm/docs/content/commands/npm-logout.md @@ -6,10 +6,19 @@ description: Log out of the registry ### Synopsis + + + + ```bash -npm logout [--registry=] [--scope=<@scope>] +npm logout ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-ls.md b/deps/npm/docs/content/commands/npm-ls.md index 3b33f0a3605e08..0f06e131f414b2 100644 --- a/deps/npm/docs/content/commands/npm-ls.md +++ b/deps/npm/docs/content/commands/npm-ls.md @@ -6,12 +6,21 @@ description: List installed packages ### Synopsis + + + + ```bash npm ls [[<@scope>/] ...] -aliases: list, la, ll +alias: list ``` + + + + + ### Description This command will print to stdout all the versions of packages that are diff --git a/deps/npm/docs/content/commands/npm-org.md b/deps/npm/docs/content/commands/npm-org.md index 2f08f611529925..975581c860df64 100644 --- a/deps/npm/docs/content/commands/npm-org.md +++ b/deps/npm/docs/content/commands/npm-org.md @@ -6,12 +6,23 @@ description: Manage orgs ### Synopsis + + + + ```bash -npm org set [developer | admin | owner] -npm org rm -npm org ls [] +npm org set orgname username [developer | admin | owner] +npm org rm orgname username +npm org ls orgname [] + +alias: ogr ``` + + + + + Note: This command is unaware of workspaces. ### Example diff --git a/deps/npm/docs/content/commands/npm-outdated.md b/deps/npm/docs/content/commands/npm-outdated.md index 1b58a6afda64bb..6fa026550e7477 100644 --- a/deps/npm/docs/content/commands/npm-outdated.md +++ b/deps/npm/docs/content/commands/npm-outdated.md @@ -6,10 +6,19 @@ description: Check for outdated packages ### Synopsis + + + + ```bash npm outdated [[<@scope>/] ...] ``` + + + + + ### Description This command will check the registry to see if any (or, specific) installed diff --git a/deps/npm/docs/content/commands/npm-owner.md b/deps/npm/docs/content/commands/npm-owner.md index 74e7f84af6c804..0779984e19a9db 100644 --- a/deps/npm/docs/content/commands/npm-owner.md +++ b/deps/npm/docs/content/commands/npm-owner.md @@ -6,14 +6,23 @@ description: Manage package owners ### Synopsis + + + + ```bash npm owner add [<@scope>/] npm owner rm [<@scope>/] npm owner ls [<@scope>/] -aliases: author +alias: author ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-pack.md b/deps/npm/docs/content/commands/npm-pack.md index 53945986837b94..c834f643ac0bb1 100644 --- a/deps/npm/docs/content/commands/npm-pack.md +++ b/deps/npm/docs/content/commands/npm-pack.md @@ -6,10 +6,19 @@ description: Create a tarball from a package ### Synopsis + + + + ```bash -npm pack [[<@scope>/]...] [--dry-run] [--json] +npm pack [[<@scope>/]...] ``` + + + + + ### Configuration diff --git a/deps/npm/docs/content/commands/npm-ping.md b/deps/npm/docs/content/commands/npm-ping.md index c59a56e611e54f..161d7292f8c977 100644 --- a/deps/npm/docs/content/commands/npm-ping.md +++ b/deps/npm/docs/content/commands/npm-ping.md @@ -6,10 +6,19 @@ description: Ping npm registry ### Synopsis + + + + ```bash -npm ping [--registry ] +npm ping ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-pkg.md b/deps/npm/docs/content/commands/npm-pkg.md index beee9c1c4e78a9..8f6cbecf958fd9 100644 --- a/deps/npm/docs/content/commands/npm-pkg.md +++ b/deps/npm/docs/content/commands/npm-pkg.md @@ -6,12 +6,21 @@ description: Manages your package.json ### Synopsis + + + + ```bash -npm pkg get [ [. ...]] -npm pkg set = [.= ...] -npm pkg delete [. ...] +npm pkg set = [= ...] +npm pkg get [ [ ...]] +npm pkg delete [ ...] ``` + + + + + ### Description A command that automates the management of `package.json` files. diff --git a/deps/npm/docs/content/commands/npm-prefix.md b/deps/npm/docs/content/commands/npm-prefix.md index 276a9e9e699100..39328bcc88a143 100644 --- a/deps/npm/docs/content/commands/npm-prefix.md +++ b/deps/npm/docs/content/commands/npm-prefix.md @@ -6,10 +6,19 @@ description: Display prefix ### Synopsis + + + + ```bash npm prefix [-g] ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-profile.md b/deps/npm/docs/content/commands/npm-profile.md index cecc48518dbdb7..af1f9d8aa10633 100644 --- a/deps/npm/docs/content/commands/npm-profile.md +++ b/deps/npm/docs/content/commands/npm-profile.md @@ -6,14 +6,22 @@ description: Change settings on your registry profile ### Synopsis + + + + ```bash -npm profile get [--json|--parseable] [] -npm profile set [--json|--parseable] -npm profile set password -npm profile enable-2fa [auth-and-writes|auth-only] +npm profile enable-2fa [auth-only|auth-and-writes] npm profile disable-2fa +npm profile get [] +npm profile set ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-prune.md b/deps/npm/docs/content/commands/npm-prune.md index 658ab2610e0ed9..49420e5b9d99cb 100644 --- a/deps/npm/docs/content/commands/npm-prune.md +++ b/deps/npm/docs/content/commands/npm-prune.md @@ -6,10 +6,19 @@ description: Remove extraneous packages ### Synopsis + + + + ```bash -npm prune [[<@scope>/]...] [--production] [--dry-run] [--json] +npm prune [[<@scope>/]...] ``` + + + + + ### Description This command removes "extraneous" packages. If a package name is provided, diff --git a/deps/npm/docs/content/commands/npm-publish.md b/deps/npm/docs/content/commands/npm-publish.md index 6958b1066de7fd..ce6e1c1012c8e2 100644 --- a/deps/npm/docs/content/commands/npm-publish.md +++ b/deps/npm/docs/content/commands/npm-publish.md @@ -6,13 +6,19 @@ description: Publish a package ### Synopsis -```bash -npm publish [|] [--tag ] [--access ] [--otp otpcode] [--dry-run] + + + -Publishes '.' if no argument supplied -Sets tag 'latest' if no --tag specified +```bash +npm publish [] ``` + + + + + ### Description Publishes a package to the registry so that it can be installed by name. diff --git a/deps/npm/docs/content/commands/npm-rebuild.md b/deps/npm/docs/content/commands/npm-rebuild.md index 75e71c60e6810a..ecb4a7ce34c62a 100644 --- a/deps/npm/docs/content/commands/npm-rebuild.md +++ b/deps/npm/docs/content/commands/npm-rebuild.md @@ -6,12 +6,21 @@ description: Rebuild a package ### Synopsis + + + + ```bash npm rebuild [[<@scope>/][@] ...] alias: rb ``` + + + + + ### Description This command runs the `npm build` command on the matched folders. This is diff --git a/deps/npm/docs/content/commands/npm-repo.md b/deps/npm/docs/content/commands/npm-repo.md index cd47fde47127ee..e14f07012a2484 100644 --- a/deps/npm/docs/content/commands/npm-repo.md +++ b/deps/npm/docs/content/commands/npm-repo.md @@ -6,10 +6,19 @@ description: Open package repository page in the browser ### Synopsis + + + + ```bash npm repo [ [ ...]] ``` + + + + + ### Description This command tries to guess at the likely location of a package's diff --git a/deps/npm/docs/content/commands/npm-restart.md b/deps/npm/docs/content/commands/npm-restart.md index 80f8ab77ef0183..f01cd014e74357 100644 --- a/deps/npm/docs/content/commands/npm-restart.md +++ b/deps/npm/docs/content/commands/npm-restart.md @@ -6,10 +6,19 @@ description: Restart a package ### Synopsis + + + + ```bash npm restart [-- ] ``` + + + + + ### Description This restarts a project. It is equivalent to running `npm run-script diff --git a/deps/npm/docs/content/commands/npm-root.md b/deps/npm/docs/content/commands/npm-root.md index 98d1108d33f758..40b58e4b33d0b2 100644 --- a/deps/npm/docs/content/commands/npm-root.md +++ b/deps/npm/docs/content/commands/npm-root.md @@ -6,10 +6,19 @@ description: Display npm root ### Synopsis + + + + ```bash -npm root [-g] +npm root ``` + + + + + ### Description Print the effective `node_modules` folder to standard out. diff --git a/deps/npm/docs/content/commands/npm-run-script.md b/deps/npm/docs/content/commands/npm-run-script.md index 6dd602d03e00ad..79b7c9a25780e6 100644 --- a/deps/npm/docs/content/commands/npm-run-script.md +++ b/deps/npm/docs/content/commands/npm-run-script.md @@ -6,14 +6,21 @@ description: Run arbitrary package scripts ### Synopsis + + + + ```bash -npm run-script [--if-present] [--silent] [-- ] -npm run-script [--workspace=] -npm run-script [--workspaces] +npm run-script [-- ] aliases: run, rum, urn ``` + + + + + ### Description This runs an arbitrary command from a package's `"scripts"` object. If no diff --git a/deps/npm/docs/content/commands/npm-search.md b/deps/npm/docs/content/commands/npm-search.md index 252822e7198443..db6a12bafabf13 100644 --- a/deps/npm/docs/content/commands/npm-search.md +++ b/deps/npm/docs/content/commands/npm-search.md @@ -6,12 +6,21 @@ description: Search for packages ### Synopsis + + + + ```bash -npm search [-l|--long] [--json] [--parseable] [--no-description] [search terms ...] +npm search [search terms ...] aliases: s, se, find ``` + + + + + Note: This command is unaware of workspaces. ### Description diff --git a/deps/npm/docs/content/commands/npm-set-script.md b/deps/npm/docs/content/commands/npm-set-script.md index 869ceede045ae3..2d8e87db852196 100644 --- a/deps/npm/docs/content/commands/npm-set-script.md +++ b/deps/npm/docs/content/commands/npm-set-script.md @@ -7,10 +7,19 @@ description: Set tasks in the scripts section of package.json ### Synopsis An npm command that lets you create a task in the `scripts` section of the `package.json`. + + + + ```bash npm set-script [