Closed tkalmar closed 5 months ago
@tkalmar I believe latest version of npm does not bundle dev
and peer
dependencies, it will only bundle prod dependencies which are mentioned in bundleDependencies
field.
npm pack
changing behaviour between a major semver change are allowed. This does not seem a bug with npm cli.
I would not have raised a bug, if this behaviour could be expected from the changelog/release notes. I think this kind of change is at least worth a mention somewhere ...
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
The behaviour of
npm pack
has changed between v8 and v9. For the given package.json:When packaging with npm v9 i got:
when packaging with v8 i got:
This is a huge difference and not expected from the changelog of v9
Expected Behavior
With the given package.json calling npm install and npm pack should give the same result or at least a Breaking change notice of the changed behaviour.
Steps To Reproduce
With the given package.json call npm install and npm pack once with v8 and once with v9 of npm
Environment