[build] no-bin-links, remove .bin folders (#19373)

* [build] no-bin-links, remove .bin folders

* add comment
This commit is contained in:
Jonathan Budzenski 2018-06-04 12:39:28 -05:00 committed by GitHub
parent 55c65a7c62
commit 13d78a7f73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -62,6 +62,7 @@ export const CleanExtraFilesFromModulesTask = {
build.resolvePath('node_modules/**/tests/**/*'),
build.resolvePath('node_modules/**/example/**/*'),
build.resolvePath('node_modules/**/examples/**/*'),
build.resolvePath('node_modules/**/.bin/**/*'),
]);
},
};

View file

@ -28,7 +28,10 @@ export const InstallDependenciesTask = {
// build. This means the lockfile won't be consistent, so instead of
// verifying it, we just skip writing a new lockfile. However, this does
// still use the existing lockfile for dependency resolution.
const args = ['--production', '--ignore-optional', '--pure-lockfile'];
// We're using --no-bin-links to support systems that don't have symlinks.
// This is commonly seen in shared folders on virtual machines
const args = ['--production', '--ignore-optional', '--pure-lockfile', '--no-bin-links'];
await exec(log, 'yarn', args, {
cwd: build.resolvePath(),