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
What is the current behavior?
A .gitignore in an ignored directory with an exclusion (!) will cause the exclusions to be packed. This also makes yarn pack slow when the ignored directory is large enough.
My use case is that I have a submodule (Node itself) which I'm trying to ignore when packaging.
If the current behavior is a bug, please provide the steps to reproduce.
mkdir test
cd test
yarn init -y
echo lib > .npmignore
mkdir lib
touch lib/test
echo '!test' > lib/.gitignore
yarn pack
tar -tf *.tgz
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
A .gitignore in an ignored directory with an exclusion (
!
) will cause the exclusions to be packed. This also makesyarn pack
slow when the ignored directory is large enough.My use case is that I have a submodule (Node itself) which I'm trying to ignore when packaging.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Assuming this is the correct behavior I think the solution would be to avoid descending into ignored directories.
If there is any way of achieving this with Yarn as-is I'm all ears.
Please mention your node.js, yarn and operating system version.
Node: 12.14.0
Yarn: 1.21.1
OS: Arch Linux
The text was updated successfully, but these errors were encountered: