yarnpkg/yarn
View on GitHub'yarn pack' should not process .gitignore if .npmignore is present
Open
#754 opened on Oct 11, 2016
cat-bughelp wantedtriaged
Description
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
yarn pack ignores files specified in .gitignore while npm pack does not.
When .js files are generated from another language or flavor of javascript, generated files are often not checked-in and thus *.js or **/*.js entry is added to .gitignore. These generated files should be included in the package at runtime.
If the current behavior is a bug, please provide the steps to reproduce.
- create
index.jsfile at project root. - create
.gitignorefile at project root with entry*.js. - run
yarn pack. - decompress package
.tgzfile. index.jsfile will not be in the decompressed package, onlypackage.jsonandnode_modules.
What is the expected behavior?
index.js should be there.
Please mention your node.js, yarn and operating system version.
Node.js v6.7 Yarn v0.15.1 macOS Sierra