refactor: use npm in build steps and postinstall.sh (#5844)

* refactor: default to npm in postinstall.sh

yarn has a bug where it will try to update dependencies even if
`yarn.lock` is present. Therefore we're defaulting to `npm` to prevent
further issues.

* refactor: exclude yarn.lock in standalone

By excluding `yarn.lock`, we prevent issues where the user must use
`yarn` instead of `npm` to install code-server.
This commit is contained in:
Joe Previte
2022-12-07 15:04:50 -07:00
committed by GitHub
parent 1297e9ac88
commit 3182be634e
2 changed files with 9 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ main() {
source ./ci/lib.sh
rsync "$RELEASE_PATH/" "$RELEASE_PATH-standalone"
rsync --exclude yarn.lock "$RELEASE_PATH/" "$RELEASE_PATH-standalone"
RELEASE_PATH+=-standalone
# We cannot find the path to node from $PATH because yarn shims a script to ensure