Lines 1-12
Link Here
|
1 |
--- build/npm/postinstall.js.orig 2022-06-08 11:20:55 UTC |
1 |
--- build/npm/postinstall.js.orig 2022-06-08 11:20:55 UTC |
2 |
+++ build/npm/postinstall.js |
2 |
+++ build/npm/postinstall.js |
3 |
@@ -20,7 +20,8 @@ function yarnInstall(location, opts) { |
3 |
@@ -20,7 +20,9 @@ function yarnInstall(location, opts) { |
4 |
const raw = process.env['npm_config_argv'] || '{}'; |
4 |
const raw = process.env['npm_config_argv'] || '{}'; |
5 |
const argv = JSON.parse(raw); |
5 |
const argv = JSON.parse(raw); |
6 |
const original = argv.original || []; |
6 |
const original = argv.original || []; |
7 |
- const args = original.filter(arg => arg === '--ignore-optional' || arg === '--frozen-lockfile' || arg === '--check-files'); |
7 |
- const args = original.filter(arg => arg === '--ignore-optional' || arg === '--frozen-lockfile' || arg === '--check-files'); |
8 |
+ const passargs = ['--ignore-optional', '--frozen-lockfile', '--check-files', '--offline', '--no-progress', '--verbose']; |
8 |
+ const passargs = ['--ignore-optional', '--frozen-lockfile', '--check-files', '--offline', '--no-progress', '--verbose']; |
9 |
+ const args = original.filter(arg => passargs.includes(arg)); |
9 |
+ const args = original.filter(arg => passargs.includes(arg)); |
|
|
10 |
+ args.push('--use-yarnrc=../.yarnrc') |
10 |
if (opts.ignoreEngines) { |
11 |
if (opts.ignoreEngines) { |
11 |
args.push('--ignore-engines'); |
12 |
args.push('--ignore-engines'); |
12 |
delete opts.ignoreEngines; |
13 |
delete opts.ignoreEngines; |