Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Add --depth 1000 to npm ls #240

Merged
merged 2 commits into from
May 18, 2021
Merged

Add --depth 1000 to npm ls #240

merged 2 commits into from
May 18, 2021

Conversation

zlav
Copy link
Member

@zlav zlav commented May 18, 2021

Overview

npm ls has started to only show depth of 0 as late as npm 7.8.0. This breaks standard npm analysis, fortunately adding --depth 1000 shows the full dependency graph and is backward compatible. 1000 is arbitrary but it is a round number and enforces that we will always get the full dependency graph.

Acceptance criteria

npm ls --production --depth 1000 is run and in environments, with newer npm versions we are able to get deep dependencies.

Testing plan

Set npm to 7.8.0, run spectrometer before updating the npm command, and compare the results to what I get after updating the npm command.

Risks

I don't see any risks with this.

Checklist

  • I updated CHANGELOG.md. If the PR did not mark a release, update the #Unreleased section at the top.

@zlav zlav requested a review from cnr May 18, 2021 19:39
@zlav zlav merged commit f4b7db0 into master May 18, 2021
@zlav zlav deleted the npm-specify-depth branch May 18, 2021 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants