forked from projen/projen
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(node): operation not permitted: unlink 'node_modules/projen'
After yarn installs `node_modules/projen`, it is no longer a file but a directory so unlinking it fails. Now, the heuristics are as follows: If `node_modules/projen/package.json` does not exist or `node_modules/projen` is not a directory (could be a symlink from another run), we recreate it as a symlink to the executing cli. Then, after synthesis, before running `yarn install`, if there's a symlink, we remove it. We also run `yarn install` with `--check-files` to verify the integrity of `node_modules`. Additionally, in CI builds, we run yarn install with `--frozen-lockfile`. Fixes projen#93
- Loading branch information
Elad Ben-Israel
committed
Sep 2, 2020
1 parent
a6c40c3
commit e310054
Showing
7 changed files
with
55 additions
and
315 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
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
Oops, something went wrong.