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
2021-07-017.19.1v7.19.1release/v7.19.1Gar
2021-07-01update AUTHORSGar
2021-07-01docs: changelog for v7.19.1Gar
2021-07-01fix(docs): remove .hooks scriptsGar
This is not implemented in npm@7 PR-URL: https://github.com/npm/cli/pull/3486 Credit: @wraithgar Close: #3486 Reviewed-by: @nlf
2021-07-01fix(docs): remove npm package config overrideGar
This is no longer possible, as per [rfc 21](https://github.com/npm/rfcs/blob/latest/implemented/0021-reduce-lifecycle-script-environment.md) PR-URL: https://github.com/npm/cli/pull/3485 Credit: @wraithgar Close: #3485 Reviewed-by: @isaacs
2021-06-30chore(tests): clean snapshot for lib/view.js testsGar
Closes https://github.com/npm/cli/issues/1623 PR-URL: https://github.com/npm/cli/pull/3483 Credit: @wraithgar Close: #3483 Reviewed-by: @isaacs
2021-06-30fix(deprecate): add undeprecate supportGar
Setting a deprecation of an empty string is the way to un-deprecate a package, this was accidentally broken in a past refactoring, and is now re-added with a test to ensure it is allowed. PR-URL: https://github.com/npm/cli/pull/3484 Credit: @wraithgar Close: #3484 Reviewed-by: @isaacs
2021-06-28fix(ping): make "npm ping" echo a right timeAluneed
There is no need to make the time divided by 1000 because of the time unit 'ms'. Currently a typical command and response: PS C:\projects> npm ping npm notice PING http://registry.npmjs.org/ npm notice PONG 0.752ms PR-URL: https://github.com/npm/cli/pull/3474 Credit: @aluneed Close: #3474 Reviewed-by: @wraithgar
2021-06-25fix(exitHandler): write code to logfileGar
This moves the logging of the exit code to before the logfile is written, when the exit handler was not called. This will ensure that the code shows up in the debug logs. PR-URL: https://github.com/npm/cli/pull/3469 Credit: @wraithgar Close: #3469 Reviewed-by: @isaacs
2021-06-257.19.0v7.19.0release/v7.19.0Gar
2021-06-25update AUTHORSGar
2021-06-25docs: changelog for v7.19.0Gar
2021-06-25@npmcli/arborist@2.6.4Gar
* bin: allow turning off timer display with --timers=false * fix: do not try to inflate a fresh lockfile * fix(diff): walk target children if root is a link * chore: @npmcli/package-json refactor
2021-06-24chore(deps): bundle-and-gitignoreGar
this didn't get ran when we added the new package-json package
2021-06-23feat(ls): report *why* something is invalidisaacs
This is a papercut that has been driving me crazy when debugging ERESOLVE issues. It's not particularly useful to just say something is "invalid", without showing which module's dependency is not being met. With this commit, it prints all the packages that depend on that dependency and do not have their required version met. This does print multiple times for deduped deps that are invalid, but if we skip the printing of the `invalid` label for deduped deps, we end up losing information that is only detected later in the tree walk. PR-URL: https://github.com/npm/cli/pull/3460 Credit: @isaacs Close: #3460 Reviewed-by: @nlf
2021-06-23chore: @npmcli/package-json refactorRuy Adorno
Refactor set-script and init to use @npmcli/package-json as a uniformed way to update and save package.json files. Fixes: https://github.com/npm/cli/issues/3234 Relates to: https://github.com/npm/statusboard/issues/368 PR-URL: https://github.com/npm/cli/pull/3455 Credit: @ruyadorno Close: #3455 Reviewed-by: @nlf
2021-06-23chore(config): snapshot config descriptionsGar
We had tied the usage of commands to snapshots, but not the full config descriptions. This will prevent us from landing changes to the config descriptions that don't also result in rebuilt `.md` help docs. Closes https://github.com/npm/statusboard/issues/374 PR-URL: https://github.com/npm/cli/pull/3459 Credit: @wraithgar Close: #3459 Reviewed-by: @nlf
2021-06-23eslint@7.29.0Gar
2021-06-23chore(tests): expose real mock npm objectGar
Consolidates existing "real npm" mocks, labels it real. We can now migrate tests to this one at a time instead of trying to make one giant PR that does it all at once. PR-URL: https://github.com/npm/cli/pull/3458 Credit: @wraithgar Close: #3458 Reviewed-by: @nlf
2021-06-23chore(refactor): async npm.loadGar
Tests for cli now use the real npm PR-URL: https://github.com/npm/cli/pull/3451 Credit: @wraithgar Close: #3451 Reviewed-by: @nlf
2021-06-23chore(errorHandler): rename to exit handlerGar
Cleaned the code up too PR-URL: https://github.com/npm/cli/pull/3416 Credit: @wraithgar Close: #3416 Reviewed-by: @nlf
2021-06-23chore(linting): add bin and clean up lib/ls.jsIvan
This adds linting checking to our bin directory, fixes the linting errors that generated, and cleans up lib/ls.js to remove unused variables. PR-URL: https://github.com/npm/cli/pull/3454 Credit: @Ivan12273 Close: #3454 Reviewed-by: @darcyclarke
2021-06-22fix(docs): Improve phrasing of workspace exampleLukas Spieß
PR-URL: https://github.com/npm/cli/pull/3450 Credit: @lumaxis Close: #3450 Reviewed-by: @wraithgar
2021-06-17chore: fix version number in changelogRuy Adorno
2021-06-177.18.1v7.18.1release/v7.18.1Gar
2021-06-17docs: changelog for v7.18.1Gar
2021-06-17fix(docs): rebuild config docsGar
updates copy for package-lock-only and ls PR-URL: https://github.com/npm/cli/pull/3435 Credit: @wraithgar Close: #3435 Reviewed-by: @lukekarrys
2021-06-177.18.0v7.18.0release/v7.18.0Luke Karrys
2021-06-17fix(docs): rebuild docsLuke Karrys
2021-06-17update AUTHORSLuke Karrys
2021-06-17docs: changelog for v7.18.0Luke Karrys
2021-06-17feat(pack): add pack-destination configGar
This will allow users to specify a folder in which to save their tarballs. PR-URL: https://github.com/npm/cli/pull/3420 Credit: @wraithgar Close: #3420 Reviewed-by: @ruyadorno
2021-06-17libnpmexec@2.0.0Gar
* use new npxCache option
2021-06-17fix(config): add flatOptions.npxCacheGar
This adds a new `npxCache` flatOption for libnpmexec to look for to put its `_npx` content. libnpmexec will have to be patched to use that value, and continue to pass `flatOptions.cache` to pacote et al. The `flatOptions.cache` is the one that is intended to be passed down into other modules, as it has the `_cacache` suffix attached. What was happening before was that `npx` was creating a new alternate cache one directory up from where everything else was, and also putting the `_npx` content there. It is possible this is the source of at least some of our "npx doesn't find the right versions" bugs. PR-URL: https://github.com/npm/cli/pull/3430 Credit: @wraithgar Close: #3430 Reviewed-by: @ruyadorno
2021-06-17fix(ls): respect prod config for workspacesRuy Adorno
`npm ls --prod` is currently not omitting devDependencies for configured workspaces, this changes it by properly checking for the tweaked `currentDepth` value instead of root check that was in place. Fixes: https://github.com/npm/cli/issues/3382 PR-URL: https://github.com/npm/cli/pull/3429 Credit: @ruyadorno Close: #3429 Reviewed-by: @wraithgar
2021-06-17make-fetch-happen@9.0.3Gar
* fix: implement cache modes correctly
2021-06-17fix(config): update link definitionGar
The behavior for installing global versions if found has never been part of npm@7. PR-URL: https://github.com/npm/cli/pull/3418 Credit: @wraithgar Close: #3418 Reviewed-by: @lukekarrys
2021-06-16@npmcli/arborist@2.6.3Gar
* fix(inventory) handle old and british forms of 'license' * fix: removes [_complete] check to apply correct metadata * ensure node.fsParent is not set to node itself * fix extraneous deps on load-actual
2021-06-16chore(tests): use path.resolveGar
npm-package-arg is doing things more properly now so the tests should reflect that PR-URL: https://github.com/npm/cli/pull/3426 Credit: @wraithgar Close: #3426 Reviewed-by: @ruyadorno
2021-06-16npm-package-arg@8.1.5Gar
* fix: Make file: URLs (mostly) RFC 8909 compliant
2021-06-16feat(ls): support `--package-lock-only` flagGareth Jones
This enables using the virtual tree instead of node_modules. PR-URL: https://github.com/npm/cli/pull/3408 Credit: @G-Rath Close: #3408 Reviewed-by: @isaacs
2021-06-16libnpmversion@1.2.1Gar
* fix(retrieve-tag): pass match in a way git accepts
2021-06-16fix(docs): ls command usage instructionsVlad GURDIGA
PR-URL: https://github.com/npm/cli/pull/3423 Credit: @gurdiga Close: #3423 Reviewed-by: @ruyadorno
2021-06-16fix(workspaces): explicitly error in global modeGar
Also includes a preliminary refactor to consolidate workspace logic now that every command that supports workspaces has it implemented. PR-URL: https://github.com/npm/cli/pull/3417 Credit: @wraithgar Close: #3417 Reviewed-by: @ruyadorno
2021-06-16chore(refactor): finish passing npm contextGar
No more requiring npm as a singleton. This will now allow us to move forward with the other refactoring we need to always use the npm object itself in tests, not a mocked one. PR-URL: https://github.com/npm/cli/pull/3388 Credit: @wraithgar Close: #3388 Reviewed-by: @ruyadorno
2021-06-11chore(libnpmdiff): added as workspaceRuy Adorno
- Setup ./packages/* as workspaces - Moved source from: https://github.com/npm/libnpmdiff to ./packages/libnpmdiff - Added CI target for workspaces Relates to: https://github.com/npm/statusboard/issues/362 PR-URL: https://github.com/npm/cli/pull/3386 Credit: @ruyadorno Close: #3386 Reviewed-by: @wraithgar
2021-06-11fix(link): do not prune packagesRuy Adorno
`npm link <pkg>` is meant to be used as a way to link a local package to an install tree and it's very surprising to users that it may prune extraneous deps from the project. This change switches the default behavior to avoid pruning deps when reifying the dependencies in npm link. Fixes: https://github.com/npm/cli/issues/2554 PR-URL: https://github.com/npm/cli/pull/3399 Credit: @ruyadorno Close: #3399 Reviewed-by: @ljharb, @nlf
2021-06-107.17.0v7.17.0release/v7.17.0Gar
2021-06-10docs: changelog for v7.17.0Gar
2021-06-10eslint@7.28.0Gar