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
I checked src/cli/commands/pack.js and util/filter.js, it seems the logic is to load ignore files (.npmignore, if not found, load .gitignore) and then append rules to blacklist files in files field.
I think when files field is white list mode, ignore files (.gitignore, .npmignore, etc) should not be used
Do you want to request a feature or report a bug?
bug
What is the current behavior?
try run
yarn pack
in my project, the produced tgz file contains unexpected files.It seems
.gitignore
take a higher priority overfiles
field (white list) inpackage.json
package.json
.gitignore
yarn pack
npm pack
If the current behavior is a bug, please provide the steps to reproduce.
Please go and check my repo https://github.com/guoyk93/scriptlet
run
yarn pack
andnpm pack
, remember to runtsc
before packaging.What is the expected behavior?
I believe
yarn pack
should work identically asnpm pack
Please mention your node.js, yarn and operating system version.
node v10.16.0
yarn 1.16.0
npm 6.9.0
os Linux Mint 19.1 (Ubuntu 18.04 LTS)
The text was updated successfully, but these errors were encountered: