Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-01feat: default `install-links` to truegar/install-linksGar
BREAKING CHANGE: this changes the default value of `install-links` to true Closes https://github.com/npm/statusboard/issues/510
2022-08-25feat: add deprecation warnings to access commandsGar
2022-08-24docs: fix link to dependency selectors page (#5321)Nathan Hughes
fix: correct link to dependency selectors
2022-08-03fix: properly find locally/globally/npxCache packagesGar
Lots of bugfixes here, we properly parse ranges and versions, and we also now work with git repos and gists, and know when they are already installed.
2022-08-01feat: add npm query cmd (#5000)Ruy Adorno
Co-authored-by: Gar <gar+gh@danger.computer>
2022-08-01docs: Use the full proper name of Travis CI (#5240)Takuya N
Use the full proper name of Travis CI Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-07-28docs: sync ci params with install (#5207)Gar
2022-07-28fix(init): allow for spec on scope-only arg (#5206)Gar
2022-07-28docs: update npm-ls.md (#5218)MapleCCC
2022-07-21docs: update commit-ish default branch (#5205)JC (Jonathan Chen)
* docs: update commit-ish default branch To match with https://github.com/npm/cli/blob/latest/docs/content/using-npm/developers.md#what-is-a-package
2022-07-20docs: Update audit signatures cmd (#5168)Philip Harrison
fix: Update docs for audit signatures cmd Update command documentation for `npm audit signatures` added in this PR: https://github.com/npm/cli/pull/4827
2022-07-12feat: Add `web` auth type (#5076)Julian Møller Ellehauge
2022-07-12feat: warn on config --auth-type=sso/saml/oauth, undeprecate --auth-typeNathan Fritz
2022-07-11docs: typo in npm command (#5118)Mihai Crisan
2022-07-11feat: add npm audit signatures (#4827)Philip Harrison
* feat: add npm audit signatures Implements [RFC: Improve signature verification](https://github.com/npm/rfcs/pull/550/) Adds a new sub-command to `audit`: `npm audit signatures` (following [`npm audit licenses`](https://github.com/npm/cli/pull/3452)) This command will verify registry signatures stored in the packument against a public key on the registry. Supporting: - Any registry that implements `host/-/npm/v1/keys` endpoint and provides `signatures` in the packument `dist` object - Validates public keys are not expired - Errors when encountering packages with missing signatures when the registry returns keys at `host/-/npm/v1/keys` - Errors when encountering invalid signatures - Output: json/human formats
2022-06-29docs: add foreground-scripts to run-script page (#5087)Ruy Adorno
2022-06-22docs: consolidate docs and help for package spec (#5048)Gar
Many of our commands parse their args via [npm-package-arg](https://npm.im/npm-package-arg), which is a good standard way of parsing a "package" argument. However the docs surrounding these args are not very consistent. This can lead to confusion in commands such as `npm publish` where the behavior is slightly different than in the past due to this. This adds a new help command `npm help package-spec` that describes what this argument is, and can be, and also updates all the commands that interpret their args this with to refer to them as `<package-spec>`. It also adds a link to the new help page on their docs pages.
2022-06-02fix: undeprecate and remove warnings for --global, -g, --local (#4982)Nathan Fritz
2022-06-02feat: Add `--auth-type=webauthn` flag (#4931)Julian Møller Ellehauge
* feat: Add --use-webauth flag * Add docs * Switch from a separate flag to a variation of auth-type * Update snapshot
2022-06-02feat(init): reify on init new workspace (#4892)Ruy Adorno
Adds a minimalistic reify step that updates the installed tree after initializing a new workspace. Moved the shared update logic from `lib/commands/version.js` to a `lib/workspaces/update-workspaces.js` module that is reused between both `npm version` and `npm init`. Relates to: https://github.com/npm/rfcs/issues/556 Relates to: https://github.com/npm/cli/pull/4588
2022-05-19fix(ci): remove node_modules post-validation (#4913)Gar
The removal of node_modules was happening in a race with the loading of the virtualTree, and before the validation of the package-lock against the package.json. This defers the removal till after all that validation has happened. It also makes the errors thrown usage errors, and refactors the tests to be real.
2022-05-19feat: deprecated set-script, birthday, --global, and --localNathan Fritz
2022-05-09fix: consolidate bugs, docs, repo command logic (#4857)Gar
All three of these commands do the same thing: open a manifest and find a url inside to open it. The finding of that manifest was not very consistent across these three commands. Some work with workspaces while others don't. Some work correctly with `--prefix` while others don't. This PR consolidates these commands so that they all are consistent in how they find the manifest being referenced. The specifics of which url they open are still left to each command. The util that only these three commands were using was consolidated into their base class.
2022-05-09fix: cleanup star/unstar (#4868)Gar
It was querying whoami once for every package you starred/unstarred, and incorrectly trying to determine if you weren't logged in. In fact the function throws a descriptive message if you're not logged in already. The whoami check was also racing with the fetch of the packument for each package you were starring/unstarring meaning you could also get a random 401 for a private package instead of the 'you need to log in' message. unstar was setting an undocumented config item to get the shared code to unstar. The command already has a name attribute that tells us what action we are doing so we can just use that. Finally, the duplicated (and differing) params between the two commands were consolidated.
2022-05-04docs: show complex object interactions in npm pkg (#4847)Gar
2022-05-04docs: remove incorrect v6 auto prune info (#4845)Gar
As of npm@7, extraneous modules are always auto pruned
2022-05-03feat: make npm owner workspace aware (#4835)Gar
2022-04-20chore: rebuild docs for install-links confignlf
2022-04-20docs: add some more docs for --install-linksnlf
2022-04-05fix(run-script): don't cascade if-present config (#4678)Ruy Adorno
Do not pass the `if-present` env config value to spawned processes. Fixes: https://github.com/npm/cli/issues/3352 Close: https://github.com/npm/cli/pull/3589
2022-04-04fix: do not export npm_config_include_workspace_rootGar
2022-04-04fix: remove dedupe --saveGar
* Removed dedupe --save documentation and attempted implementation. * Remove some unneeded otplease mocks from test `npm dedupe --save` didn't work in a easy to understand way. It would only update a top level dependency that was duplicated in the tree. Found this out rewriting the dedupe tests to be real. This is not very intuitive and it's best if folks use update or install for saving to package.json.
2022-04-04docs: fix npm-uninstall typo (#4670)JSKitty
Futher --> Further
2022-04-01docs(ci): add note that configuration must be consistent between install and ↵nlf
ci (#4666) related to #4664
2022-03-28fix: consolidate command alias codeGar
2022-03-24feat(version): reify on workspace version change (#4588)Ruy Adorno
Adds a minimalistic reify step that updates the installed tree after a version change within one of the configured workspaces when using any of the workspaces config options. It's also possible to use the `--save` config option in order to auto update semver ranges of dependencies declarations accross dependent `package.json` files. Fixes: https://github.com/npm/cli/issues/3403 Relates to: https://github.com/npm/rfcs/issues/556 Relates to: https://github.com/npm/cli/issues/3757 Relates to: https://github.com/npm/cli/issues/4193
2022-03-17docs: fix unpublish docs to auto generate usage (#4584)Gar
Also add explanation of what `--force` does for unpublish
2022-03-17docs: explain that git-tag-version=false does not commit (#4574)Gar
2022-03-17docs: add isntall alias to install command (#4582)Gar
2022-03-17docs: add foreground-scripts and ignore-scripts to commandsGar
I think this gets them all
2022-02-24docs: auto-generate npm usage for each command (#4450)Wassim Chegham
Closes #4189 * docs: auto-generate synopsis sections * feat: improve usage auto-generation' * chore: auto-generate npm usage for each command * docs: print default usage when usage is missing * docs: add special case for npx * fix: remove optional chaining
2022-02-22docs: clarify npm init @latest behavior (#4435)Gar
Closes: https://github.com/npm/cli/issues/3821
2022-02-17Merge branch 'latest' into release-nextGar
2022-02-17docs: update docs for npm install <folder> (#4428)Wassim Chegham
npm install <folder> doesn't install dependencies if <folder> is outside of root project. Fixes #3358
2022-02-16docs: update documentation for ping (#4423)F. Hinkelmann
Fixes https://github.com/npm/cli/issues/4136
2022-02-08docs: add cross-references between npx and npm execDelapouite
2022-01-20fix: npm update --save (#4223)Ruy Adorno
Previously `npm update` was not respecting the `save` option, it would be impossible for users to use `npm update` and automatically update their `package.json` files. This fixes it by adding extra steps on `Arborist.reify._saveIdealTree` to read direct dependencies of any `package.json` and update them as needed when reifying using the `update` and `save` options. - Uses config.isDefault to set a different value for the `save` config for both the update and dedupe commands - Tweaks arborist to make sure saveIdealTree preserves the behavior of skipping writing to package-lock.json on save=false for install while still writing the lockfile for `npm update` with its new default value of save=false. - Updated and added some new tests on arborist to cover for these tweaks - Added `npm update --save` smoke test on cli Fixes: https://github.com/npm/cli/issues/708 Fixes: https://github.com/npm/cli/issues/2704 Relates to: https://github.com/npm/feedback/discussions/270
2021-11-17docs: fix typo in npm install docsMansur Ali Koroglu
PR-URL: https://github.com/npm/cli/pull/4053 Credit: @MansurAliKoroglu Close: #4053 Reviewed-by: @wraithgar
2021-10-15feat(workspaces): add --include-workspace-root and explicit --no-workspacesfritzy/workspace-rootGar
Adds a new config item that includes the workspace root. This also changes --workspaces to a trinary, so that setting it to false will explicitly exclude workspaces altogether. PR-URL: https://github.com/npm/cli/pull/3890 Credit: @fritzy Close: #3890 Reviewed-by: @wraithgar
2021-09-30Revert "feat(workspaces): --include-workspace-root"Luke Karrys
This reverts commit f17dfa0ced7d8df9bb7baf378bb20d33175c8e8b.