Skip to content

Commit da03a64

Browse files
authored
fix(npm): use correct flags and update version for npm (#5533)
* fix: update npm-postinstall.sh script Add --legacy-peer-deps to deal with weird npm issue with vscode dependencies. See: https://stackoverflow.com/a/66620869/3015595 * fix: use npm in release-standalone * chore: update package.json * chore: bump plugin engine for tests
1 parent 6742e94 commit da03a64

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ci/build/build-standalone-release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ main() {
2828
ln -s "./lib/node" "$RELEASE_PATH/node"
2929

3030
pushd "$RELEASE_PATH"
31-
yarn --production --frozen-lockfile
31+
npm install --unsafe-perm --omit=dev
3232
popd
3333
}
3434

ci/build/npm-postinstall.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ install_with_yarn_or_npm() {
140140
echo "yarn.lock file present, running in development mode. use yarn to install code-server!"
141141
exit 1
142142
else
143-
npm install --omit=dev
143+
npm install --unsafe-perm --legacy-peer-deps --omit=dev
144144
fi
145145
;;
146146
*)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "code-server",
33
"license": "MIT",
4-
"version": "4.6.1",
4+
"version": "4.6.1-1",
55
"description": "Run VS Code on a remote server.",
66
"homepage": "https://github.com/coder/code-server",
77
"bugs": {

test/unit/node/test-plugin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "test-plugin",
44
"version": "1.0.0",
55
"engines": {
6-
"code-server": "^4.0.1"
6+
"code-server": "^4.6.1-1"
77
},
88
"main": "out/index.js",
99
"devDependencies": {

0 commit comments

Comments
 (0)