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
npm pack adds files not specified in the files field in package.json. This seems to happen due to misinterpreting .gitignore files in subdirectories (they should only exclude, never include files). This did not happen in previous versions of npm.
; "user" config from /Users/user/.npmrc
//registry.npmjs.org/:_authToken = (protected)
prefix = "/Users/user/.local"python = "python3"; node bin location = /opt/local/bin/node; node version = v20.9.0; npm local prefix = /private/tmp/npm-test; npm version = 10.2.4; cwd = /private/tmp/npm-test; HOME = /Users/user; Run `npm config ls -l` to show all defaults.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm pack
adds files not specified in thefiles
field in package.json. This seems to happen due to misinterpreting.gitignore
files in subdirectories (they should only exclude, never include files). This did not happen in previous versions of npm.Expected Behavior
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: