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
Files under directories already added to files of package.json cannot be excluded by adding them to files (like !some_directory). Up to npm 6.14.11 it was possible to exclude, but from npm 7.5.2 it is no longer possible.
package.json, src/index.js, src/__tests__/indexTest.js are added to the npm package.
Current Behavior
Files under directories already added to
files
of package.json cannot be excluded by adding them tofiles
(like!some_directory
). Up to npm 6.14.11 it was possible to exclude, but from npm 7.5.2 it is no longer possible.package.json
,src/index.js
,src/__tests__/indexTest.js
are added to the npm package.Expected Behavior
package.json
,src/index.js
are added to the npm package. (use npm 6.14.11)Steps to Reproduce
npm pack --dry-run
Other
By using wildcards, you can exclude them in both npm v6/v7. (ex.
!__tests__
->!**/__tests__
)Environment:
The text was updated successfully, but these errors were encountered: