Skip to content

Commit

Permalink
Preserve package-lock.json when shrinkwrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
code-asher committed Oct 17, 2024
1 parent 3f67c0e commit 90899f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/build/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 90899f0

Please sign in to comment.