Don't use symlinks in the standalone distribution zip. (#3582)

Don't install vscode with file:./vscode because it creates a
symlink which is not portable for the distribution.
This commit is contained in:
Sarah Fortune 2025-05-17 14:52:19 -07:00 committed by GitHub
parent 2ba2b5b264
commit ba64d9fafb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -16,8 +16,11 @@ const cwd = process.cwd()
process.chdir(BUILD_DIR)
try {
execSync("npm install", { stdio: "inherit" })
// Move the vscode directory into node_modules.
// It can't be installed using npm because it will create a symlink which is not portable.
fs.renameSync("vscode", path.join("node_modules", "vscode"))
} catch (error) {
console.error("Error running npm install:", error)
console.error("Error during setup:", error)
process.exit(1)
} finally {
process.chdir(cwd)

View File

@ -6,7 +6,6 @@
"@grpc/grpc-js": "^1.13.3",
"@grpc/reflection": "^1.0.4",
"grpc-health-check": "^2.0.2",
"open": "^10.1.2",
"vscode": "file:./vscode"
"open": "^10.1.2"
}
}