diff options
Diffstat (limited to 'editors/vscode/files/patch-build_npm_postinstall.js')
| -rw-r--r-- | editors/vscode/files/patch-build_npm_postinstall.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/editors/vscode/files/patch-build_npm_postinstall.js b/editors/vscode/files/patch-build_npm_postinstall.js deleted file mode 100644 index 6d991878d2bd..000000000000 --- a/editors/vscode/files/patch-build_npm_postinstall.js +++ /dev/null @@ -1,27 +0,0 @@ ---- build/npm/postinstall.js.orig 2024-02-07 08:28:46 UTC -+++ build/npm/postinstall.js -@@ -41,8 +41,14 @@ function yarnInstall(dir, opts) { - const raw = process.env['npm_config_argv'] || '{}'; - const argv = JSON.parse(raw); - const original = argv.original || []; -- const args = original.filter(arg => arg === '--ignore-optional' || arg === '--frozen-lockfile' || arg === '--check-files'); -- -+ const passargs = ['--ignore-optional', '--frozen-lockfile', '--check-files', -+ '--ignore-scripts', '--offline', '--no-progress', '--verbose']; -+ const args = original.filter(arg => passargs.includes(arg)); -+ if (opts.cwd === 'remote') { -+ args.push('--use-yarnrc=' + process.env.PWD + '/' + opts.cwd + '/.yarnrc'); -+ } else { -+ args.push('--use-yarnrc=' + process.env.PWD + '/.yarnrc'); -+ } - if (opts.ignoreEngines) { - args.push('--ignore-engines'); - delete opts.ignoreEngines; -@@ -131,5 +137,5 @@ for (let dir of dirs) { - yarnInstall(dir, opts); - } - --cp.execSync('git config pull.rebase merges'); --cp.execSync('git config blame.ignoreRevsFile .git-blame-ignore-revs'); -+// cp.execSync('git config pull.rebase merges'); -+// cp.execSync('git config blame.ignoreRevsFile .git-blame-ignore-revs'); |
