Skip to content

Commit ba64d9f

Browse files
authored
Don't use symlinks in the standalone distribution zip. (RooCodeInc#3582)
Don't install vscode with file:./vscode because it creates a symlink which is not portable for the distribution.
1 parent 2ba2b5b commit ba64d9f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scripts/package-standalone.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ const cwd = process.cwd()
1616
process.chdir(BUILD_DIR)
1717
try {
1818
execSync("npm install", { stdio: "inherit" })
19+
// Move the vscode directory into node_modules.
20+
// It can't be installed using npm because it will create a symlink which is not portable.
21+
fs.renameSync("vscode", path.join("node_modules", "vscode"))
1922
} catch (error) {
20-
console.error("Error running npm install:", error)
23+
console.error("Error during setup:", error)
2124
process.exit(1)
2225
} finally {
2326
process.chdir(cwd)

standalone/runtime-files/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"@grpc/grpc-js": "^1.13.3",
77
"@grpc/reflection": "^1.0.4",
88
"grpc-health-check": "^2.0.2",
9-
"open": "^10.1.2",
10-
"vscode": "file:./vscode"
9+
"open": "^10.1.2"
1110
}
1211
}

0 commit comments

Comments
 (0)