mirror of
https://github.com/cline/cline.git
synced 2025-06-03 03:59:07 +00:00
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:
parent
2ba2b5b264
commit
ba64d9fafb
@ -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)
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user