[build] no-bin-links, remove .bin folders (#19373)
* [build] no-bin-links, remove .bin folders * add comment
This commit is contained in:
parent
55c65a7c62
commit
13d78a7f73
|
@ -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/**/*'),
|
||||
]);
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue