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 have discovered some cases where some dependency artifact folders are deleted when running yarn install --pure-lockfile. In particular this affects node-sass for my day-job project if I have deleted some othernode_modules/package-name folder. I have created a small repo that reproduces this problem.
If the current behavior is a bug, please provide the steps to reproduce.
git clone [email protected]:collinsauve/yarn-test-consumer.git
cd yarn-test-consumer
./test.sh
This uses a dependency (yarn-test-package)that creates preinstall, install, and postinstall folders when those steps are run. It also has a dependency on promisfy, just as a sample other dependency so that we can delete it from node_modules.
The tail of the output will be the following:
After initial install, these folders exist:
./node_modules/yarn-test-package/ ./node_modules/yarn-test-package/install ./node_modules/yarn-test-package/postinstall ./node_modules/yarn-test-package/preinstall
After second install, these folders exist:
./node_modules/yarn-test-package/
What is the expected behavior?
Tail of the output should be the following:
After initial install, these folders exist:
./node_modules/yarn-test-package/ ./node_modules/yarn-test-package/install ./node_modules/yarn-test-package/postinstall ./node_modules/yarn-test-package/preinstall
After second install, these folders exist:
./node_modules/yarn-test-package/ ./node_modules/yarn-test-package/install ./node_modules/yarn-test-package/postinstall ./node_modules/yarn-test-package/preinstall
Please mention your node.js, yarn and operating system version.
Node: v7.7.4
Yarn: v0.24.6
OS: Windows 10 v1607 (OS Build 14393.447)
GNU bash, version 4.3.46(2)-release (x86_64-pc-msys)
The text was updated successfully, but these errors were encountered:
What is the current behavior?
I have discovered some cases where some dependency artifact folders are deleted when running
yarn install --pure-lockfile
. In particular this affects node-sass for my day-job project if I have deleted some othernode_modules/package-name
folder. I have created a small repo that reproduces this problem.If the current behavior is a bug, please provide the steps to reproduce.
Using this repo and the
test.sh
in there to reproduce: https://github.com/collinsauve/yarn-test-consumer.This uses a dependency (yarn-test-package)that creates
preinstall
,install
, andpostinstall
folders when those steps are run. It also has a dependency onpromisfy
, just as a sample other dependency so that we can delete it from node_modules.The tail of the output will be the following:
What is the expected behavior?
Tail of the output should be the following:
Please mention your node.js, yarn and operating system version.
Node: v7.7.4
Yarn: v0.24.6
OS: Windows 10 v1607 (OS Build 14393.447)
GNU bash, version 4.3.46(2)-release (x86_64-pc-msys)
The text was updated successfully, but these errors were encountered: