mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
Changelog: https://code.visualstudio.com/updates/v1_85 Reported by: GitHub (watch releases)
27 lines
1.2 KiB
JavaScript
27 lines
1.2 KiB
JavaScript
--- build/npm/postinstall.js.orig 2023-12-06 10:36:56 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;
|
|
@@ -111,5 +117,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');
|