Is there an existing issue for this?
Current Behavior
Running the npm ls command within the --include-workspace-root does not change the output.
The outputs:
Correct
npm ls
[email protected] /Users/mspigolon/workspace/_experiments/npm-workspaces/npm-ls
├── [email protected]
└─┬ [email protected] -> ./pkg-a
└── [email protected]
Correct
npm ls -w pkg-a
[email protected] /Users/mspigolon/workspace/_experiments/npm-workspaces/npm-ls
└─┬ [email protected] -> ./pkg-a
└── [email protected]
Incorrect
npm ls -w pkg-a --include-workspace-root
[email protected] /Users/mspigolon/workspace/_experiments/npm-workspaces/npm-ls
└─┬ [email protected] -> ./pkg-a
└── [email protected]
Expected Behavior
npm ls -w pkg-a --include-workspace-root should list the root package.json dependancies
Steps To Reproduce
mkdir npm-ls
cd npm-ls
npm init --yes
npm init -w pkg-a --yes
npm install avvio
npm install fastify -w pkg-a
Environment
- OS: mac 11.6
- Node: node 16.11.1
- npm: 8.1.1
Is there an existing issue for this?
Current Behavior
Running the
npm lscommand within the--include-workspace-rootdoes not change the output.The outputs:
Correct
Correct
Incorrect
Expected Behavior
npm ls -w pkg-a --include-workspace-rootshould list the root package.json dependanciesSteps To Reproduce
Environment