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-08-26deps: hosted-git-info@5.1.0Luke Karrys
2022-08-24fix: create links relative to the targetGar
Added link deps need to be relative to the package they're being added to, not the project root. In the past the project root was the only place you could add things but workspaces changed this.
2022-08-10chore(arborist): fix test snapshots for @npmcli/run-script@4.2.1nlf
2022-08-08feat(arborist): add option to forcibly skip loading a virtual treenlf
2022-08-01fix(arborist): pass the edge to fromPath in order to determine correct path ↵nlf
(#5233) by passing in the edge we can determine if the edge is overridden, and if it is the path we want to return is the project root since that's what user's will have define their overrides relative to
2022-07-13chore: fix arborist tests for new npm-package-arg behaviourGar
2022-07-13chore: fix arborist tests for new run-script behaviourGar
2022-06-30chore: arborist test snapshots (#5106)Gar
run-script update changed cmd signatures
2022-06-22chore(tests): fix tests for @npmcli/run-script@4.1.0 updatenlf
2022-04-20feat(arborist): add support for installLinksnlf
when set, installLinks instructs arborist to pack and extract a file: dependency rather than creating a symlink to it. this has the effect of also installing the dependencies for the linked dependency, though if local changes are made it also requires the user to reinstall the package
2022-04-20fix(arborist): when replacing a Link with a Node, make sure to remove the ↵nlf
Link target from the root
2022-04-14fix(arborist): dont skip adding advisories to audit based on name/rangeLuke Karrys
When generating an audit report, a cache of seen advisories is kept to avoid doing any repeat fanout work on its nodes. Previously this cache was also preventing audits from being added to the report. This has been fixed so the cache is only used to prevent extra work, but all valid advisories are added to the output. Fixes #4681
2022-04-12chore(arborist): update printable tree test to be a valid treenlf
2022-04-04chore: npm audit snapshot fix (#4677)Gar
new metavuln-calculator fields
2022-03-28fix(arborist): identify and repair invalid nodes in the virtual treenlf
2022-03-28fix(arborist): handle link nodes in old lockfiles correctlynlf
2022-03-17fix(arborist): save workspace version (#4578)Ruy Adorno
When declaring dependencies to workspaces the common practice is to refer to their version numbers, currently the cli adds a link reference instead of the proper semver range when trying to install/declare as a direct direct dependency one of its own workspaces. This change fixes it by adding a new condition for handling workspace edges when saving the current ideal tree. Relates to: https://github.com/npm/cli/issues/3403
2022-02-08fix(arborist): save bundleDependencies to package.json when reifyingGar
2022-01-26fix(arborist): load actual tree on named updatesRuy Adorno
Arborist was not loading the actual tree when using named updates for global updates, that would result in removing all previously installed deps from a global install anytime the user would try to run `npm update <pkgname>`. This changeset fixes the problem by allowing the load of the actual tree if the `global` and `update.names` options are defined. Added a few more tests to illustrate but some of the snapshots already included were actually demonstrating the problem by having empty trees as result, these are now also updated with the expected tree result. Fixes: https://github.com/npm/cli/issues/3175
2022-01-20fix(arborist): prioritize valid workspace nodes (#4230)nlf
closes #3637
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
2022-01-18fix(arborist): ensure indentation is preserved (#4218)Jordan Harband
It turns out that `new Arborist().buildIdealTree().meta.toString()` does not take into account the indentation in the package.json (tabs, in my case) the way `npm install --package-lock-only` does. This fixes that. Also included a bonus commit that removes redundant Promise stuff inside an `async function`.
2022-01-06[arborist] [refactor] `Shrinkwrap`: add `toJSON`/`toString` methods to get ↵Jordan Harband
shrinkwrap contents without saving (#4181)
2021-12-16Bring in all libnpm modules + arborist as workspaces (#4166)Nathan Fritz
Added libnpm workspaces and arborist