mirror of https://github.com/coder/code-server.git
Preserve package-lock.json when shrinkwrapping
This commit is contained in:
parent
3f67c0ebed
commit
90899f07f8
|
@ -119,15 +119,21 @@ create_shrinkwraps() {
|
||||||
|
|
||||||
# We first generate the shrinkwrap file for code-server itself - which is the
|
# We first generate the shrinkwrap file for code-server itself - which is the
|
||||||
# current directory.
|
# current directory.
|
||||||
|
cp package-lock.json package-lock.json.temp
|
||||||
npm shrinkwrap
|
npm shrinkwrap
|
||||||
|
mv package-lock.json.temp package-lock.json
|
||||||
|
|
||||||
# Then the shrinkwrap files for the bundled VS Code.
|
# Then the shrinkwrap files for the bundled VS Code.
|
||||||
pushd "$VSCODE_SRC_PATH/remote/"
|
pushd "$VSCODE_SRC_PATH/remote/"
|
||||||
|
cp package-lock.json package-lock.json.temp
|
||||||
npm shrinkwrap
|
npm shrinkwrap
|
||||||
|
mv package-lock.json.temp package-lock.json
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd "$VSCODE_SRC_PATH/extensions/"
|
pushd "$VSCODE_SRC_PATH/extensions/"
|
||||||
|
cp package-lock.json package-lock.json.temp
|
||||||
npm shrinkwrap
|
npm shrinkwrap
|
||||||
|
mv package-lock.json.temp package-lock.json
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue