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-03-05fix(npm) pass npm context everywhereGar
Instead of files randomly requiring the npm singleton, we pass it where it needs to go so that tests don't need to do so much require mocking everywhere PR-URL: https://github.com/npm/cli/pull/2772 Credit: @wraithgar Close: #2772 Reviewed-by: @ruyadorno
2020-11-17lint tests before publishingisaacs
We have a lot of tests that were not handling errors in callbacks, not defining variables, defining variables that weren't used, and just generally not formatted like the rest of npm. Hazard of moving fast. Thankfully, machines can help.
2020-08-05pack: set correct filename for scoped packagesisaacs
This should probably be done in libnpmpack. Can be removed from here when it is.
2020-08-05pack: output generated tarball filenameisaacs
Also, pass the options to `libnpmpack`, or else we end up getting invalid integrity values for remote tarballs for some reason. This fixes CITGM with npm v7.
2020-08-04refactor and lint commands, make consistentisaacs
Still pending test coverage for most of these, but wanted to give them a clean sweep to get the "load-all-commands" tests passing. The following changes are in here: - All commands now have a `completion()` method and a usage string that uses the same `usage` util consistently. - The `silent` argument to many commands has been removed. - All commands use the `cmd = ${cmd}(args).then(() => cb()).catch(cb)` pattern consistently. Full test coverage for all commands is still lacking, and will have to be done prior to the GA v7 release.
2020-07-28test: refactor publish testsclaudiahdz
PR-URL: https://github.com/npm/cli/pull/1563 Credit: @claudiahdz Close: #1563 Reviewed-by: @ruyadorno
2020-07-24test: refactor pack testsclaudiahdz