Skip to content

Commit 90899f0

Browse files
committed
Preserve package-lock.json when shrinkwrapping
1 parent 3f67c0e commit 90899f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/build/build-release.sh

+6
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,21 @@ create_shrinkwraps() {
119119

120120
# We first generate the shrinkwrap file for code-server itself - which is the
121121
# current directory.
122+
cp package-lock.json package-lock.json.temp
122123
npm shrinkwrap
124+
mv package-lock.json.temp package-lock.json
123125

124126
# Then the shrinkwrap files for the bundled VS Code.
125127
pushd "$VSCODE_SRC_PATH/remote/"
128+
cp package-lock.json package-lock.json.temp
126129
npm shrinkwrap
130+
mv package-lock.json.temp package-lock.json
127131
popd
128132

129133
pushd "$VSCODE_SRC_PATH/extensions/"
134+
cp package-lock.json package-lock.json.temp
130135
npm shrinkwrap
136+
mv package-lock.json.temp package-lock.json
131137
popd
132138
}
133139

0 commit comments

Comments
 (0)