You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running npm pack includes the previous result of npm pack by default.
Expected Behavior
The result of npm pack is excluded. This probably means all .tgz files should be excluded. Users can choose to exclude it, but many don’t know about it.
Steps To Reproduce
Clone a repo that doesn’t use the files fields in package.json and doesn’t use .npmignore to exclude .tgz files. For example:
git@github.com:postcss/postcss.git
cd postcss
Packing produces the expected results:
npm pack
Packing again includes the previously built tarball
npm pack
Environment
npm: v20.5.1
Node: 9.8.1
OS: Pop!_OS 22.04
platform: System76 Oryx Pro
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
Running
npm pack
includes the previous result ofnpm pack
by default.Expected Behavior
The result of
npm pack
is excluded. This probably means all.tgz
files should be excluded. Users can choose to exclude it, but many don’t know about it.Steps To Reproduce
files
fields inpackage.json
and doesn’t use.npmignore
to exclude.tgz
files. For example:git@github.com:postcss/postcss.git cd postcss
Environment
The text was updated successfully, but these errors were encountered: