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
2021-02-25fix(test): update hidden package-lock mtime in lsisaacs
That file must be newer than the others for the code to do what we are expecting PR-URL: https://github.com/npm/cli/pull/2782 Credit: @isaacs Close: #2782 Reviewed-by: @wraithgar
2021-02-22update tests for new @npmcli/arborist behaviorisaacs
2021-01-15fix: npm ls global testsRuy Adorno
2020-12-18(docs,test): assorted typo fixesXhmikosR
PR-URL: https://github.com/npm/cli/pull/2381 Credit: @XhmikosR Close: #2381 Reviewed-by: @isaacs
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-10-20fix: check `result` when determining exit code of `ls <filter>`Gareth Jones
PR-URL: https://github.com/npm/cli/pull/1986 Credit: @G-Rath Close: #1986 Reviewed-by: @ruyadorno
2020-09-29fix: listing deps of a linked depRuy Adorno
npm ls was failing to properly follow symlink targets in order to find its dependencies to get printed output. PR-URL: https://github.com/npm/cli/pull/1871 Credit: @ruyadorno Close: #1871 Reviewed-by: @nlf
2020-09-29fix: npm ls <pkg> with depth cli configRuy Adorno
Using the cli option --depth is currently not resulting in the expected behavior of filtering depth level when running npm ls <pkg> - that's due the special behavior of printing all results when using a filter arg. This commit fixes it by adding support to limiting depth if a config value is set by the user. Fixes #1861 PR-URL: https://github.com/npm/cli/pull/1862 Credit: @ruyadorno Close: #1862 Reviewed-by: @nlf
2020-09-01fix: npm ls extraneous workspacesRuy Adorno
2020-07-30fix: npm ls duplicated itemsRuy Adorno
When having nodes that are children of extraneous nodes, items were getting printed twice using `npm ls`. This fixes it by keeping track of seen nodes while iterating in a same children level and effectively avoiding printing a same item twice. fix: #1573 PR-URL: https://github.com/npm/cli/pull/1576 Credit: @ruyadorno Close: #1576 Reviewed-by: @isaacs
2020-07-29test: more affordances for Windowsisaacs
PR-URL: https://github.com/npm/cli/pull/1509 Credit: @isaacs Close: #1509 Reviewed-by: @ruyadorno
2020-07-23fix: more dedupe edge casesRuy Adorno
PR-URL: https://github.com/npm/cli/pull/1545 Credit: @ruyadorno Close: #1545 Reviewed-by: @isaacs
2020-07-23fix: unmet label on deduped depsRuy Adorno
2020-07-23fix: archy output dedupe label colorRuy Adorno
2020-07-23fix: better handle problemsRuy Adorno
- Only assign problems if the related node is included in output - Avoid breaking if using dummy node on node.satisfies - Added test case for `npm ls .` edge case
2020-07-23fix: deduped+filter issuesRuy Adorno
- When using args to filter out items deduped pkgs were broken - Fixed highlight color when using filter args - Changed default behavior to show all packages when using args filter Paired-with: @isaacs
2020-07-22fix: add support to global npm lsRuy Adorno
Paired-with: @darcyclarke
2020-07-21BREAKING: changed npm ls default to depth=0Ruy Adorno
- npm ls now defaults to only printing root children - added --all flag that is same as --depth=Infinity - --depth now defaults to 0 and can still be used if --all is not truthy
2020-07-21BREAKING: rewrite npm lsRuy Adorno
- Rewrites lib/ls.js command to use @npmcli/arborist - Updates unit tests - Breaking changes: - added error codes: ELSPROBLEMS, EJSONPARSE to callback errors - extraneous deps depth will match current location in nm folder - mark top-level deps as extraneous when missing root package.json - don't mark deps as extraneous if they're valid deps of invalid deps - peer deps are now listed as regular deps, removed oddities such as peerinvalid label and stops labeling peer deps extraneous - might print diff git resolved values, see: https://github.com/npm/hosted-git-info - Parseable (--parseable) output: - possible order of printed elements changed - fixed consistency problems in which it would print root folder name if using a filter argument that could not match against any of the deps in the current installed tree - fixed printing non-existing paths for missing dependencies - fixed undefined symlink output when using --long output - JSON (--json) output: - removed: `from` property from --json output - removed: "[Circular]" references - added "missing" to list of peer-dep problems listed - added peerDependencies ref when using --long output - removed readme properties using --long output - Renamed error msg: `Failed to parse json` -> `Failed to parse root package.json` refs: - https://github.com/npm/statusboard/issues/99 - https://github.com/npm/statusboard/issues/103
2020-07-14tests: refactor ls testsRuy Adorno
- Added test/lib/ls.js with unit tests for ls command - Removed legacy tests: - test/tap/ls-depth-cli.js - test/tap/ls-depth-unmet.js - test/tap/ls-env.js - test/tap/ls-l-depth-0.js - test/tap/ls-no-results.js - test/tap/ls-peer.js - test/tap/ls-production-and-dev.js - test/tap/ls-top-errors.js - test/tap/ls.js fix #1511 PR-URL: https://github.com/npm/cli/pull/1512 Credit: @ruyadorno Close: #1512 Reviewed-by: @isaacs