ports/editors/vscode/files/patch-build_npm_postinstall.js
Hiroki Tagato 1f36b40925 editors/vscode: update to 1.85.0
Changelog: https://code.visualstudio.com/updates/v1_85

Reported by:	GitHub (watch releases)
2023-12-13 13:37:43 +09:00

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');