Skip to content

Commit 114485b

Browse files
committed
feat(patches): remove yarnrc in presinstall
1 parent 7579dbb commit 114485b

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

patches/node-version.diff

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Index: code-server/lib/vscode/build/lib/util.ts
7575
===================================================================
7676
--- code-server.orig/lib/vscode/build/lib/util.ts
7777
+++ code-server/lib/vscode/build/lib/util.ts
78-
@@ -371,9 +371,7 @@ export function streamToPromise(stream:
78+
@@ -371,9 +371,7 @@ export function streamToPromise(stream:
7979
}
8080

8181
export function getElectronVersion(): string {
@@ -91,3 +91,21 @@ Index: code-server/lib/vscode/build/lib/util.ts
9191
return result;
9292
}
9393
-
94+
Index: code-server/lib/vscode/build/npm/preinstall.js
95+
===================================================================
96+
--- code-server.orig/lib/vscode/build/npm/preinstall.js
97+
+++ code-server/lib/vscode/build/npm/preinstall.js
98+
@@ -32,6 +32,13 @@ if (!/yarn[\w-.]*\.c?js$|yarnpkg$/.test(
99+
err = true;
100+
}
101+
102+
+fs.rmSync(path.join(__dirname, '..', '..', '.yarnrc'), {
103+
+ force: true
104+
+});
105+
+fs.rmSync(path.join(__dirname, '..', '..', 'remote', '.yarnrc'), {
106+
+ force: true
107+
+});
108+
+
109+
if (process.platform === 'win32') {
110+
if (!hasSupportedVisualStudioVersion()) {
111+
console.error('\033[1;31m*** Invalid C/C++ Compiler Toolchain. Please check https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites.\033[0;0m');

0 commit comments

Comments
 (0)