forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(install): Rebuild native modules when node version changes (yarnp…
…kg#4750) **Summary** Fixes yarnpkg#756. We have multiple versions of our app and each one uses a different version of node. Therefore we need to rebuild our `node-sass` module every time we move from one to another. This PR addresses that by saving the NODE version those artifacts were built with within the `.yarn-integrity` file and triggers forced scripts install (only if the node version is different ofc). **Test plan** ``` 1. Install Node.js 7.x 2. Add the node-sass dependency to the project via Yarn 3. Update Node.js to 8.x (new NODE_VERSION) 4. Run "yarn install" (you should see yarn downloading fresh scripts/binaries) ```
- Loading branch information
1 parent
cfdd320
commit cbbcb53
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters