Preserve package-lock.json when shrinkwrapping

This commit is contained in:
Asher 2024-10-16 20:36:43 -08:00
parent 3f67c0ebed
commit 90899f07f8
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 6 additions and 0 deletions

View File

@ -119,15 +119,21 @@ create_shrinkwraps() {
# We first generate the shrinkwrap file for code-server itself - which is the
# current directory.
cp package-lock.json package-lock.json.temp
npm shrinkwrap
mv package-lock.json.temp package-lock.json
# Then the shrinkwrap files for the bundled VS Code.
pushd "$VSCODE_SRC_PATH/remote/"
cp package-lock.json package-lock.json.temp
npm shrinkwrap
mv package-lock.json.temp package-lock.json
popd
pushd "$VSCODE_SRC_PATH/extensions/"
cp package-lock.json package-lock.json.temp
npm shrinkwrap
mv package-lock.json.temp package-lock.json
popd
}