Set --frozen-lockfile with yarn when necessary

This commit is contained in:
Anmol Sethi 2020-05-14 21:47:33 -04:00
parent d4b3d21dce
commit 89c5a4dfea
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB
7 changed files with 7 additions and 7 deletions

View File

@ -69,7 +69,7 @@ EOF
) > "$VSCODE_OUT_PATH/product.json" ) > "$VSCODE_OUT_PATH/product.json"
pushd "$VSCODE_OUT_PATH" pushd "$VSCODE_OUT_PATH"
yarn --production --ignore-scripts yarn --production --frozen-lockfile --ignore-scripts
popd popd
# We clear any native module builds. # We clear any native module builds.

View File

@ -19,7 +19,7 @@ main() {
rsync "$node_path" "$RELEASE_PATH/lib/node" rsync "$node_path" "$RELEASE_PATH/lib/node"
cd "$RELEASE_PATH" cd "$RELEASE_PATH"
yarn --production yarn --production --frozen-lockfile
} }
main "$@" main "$@"

View File

@ -15,7 +15,7 @@ main() {
( (
cd lib/vscode cd lib/vscode
# Install VS Code dependencies. # Install VS Code dependencies.
yarn yarn ${CI+--frozen-lockfile}
) )
} }

View File

@ -4,7 +4,7 @@ set -euo pipefail
main() { main() {
cd "$(dirname "$0")/../.." cd "$(dirname "$0")/../.."
yarn yarn --frozen-lockfile
git submodule update --init git submodule update --init
# We do not `yarn vscode` to make test.sh faster. # We do not `yarn vscode` to make test.sh faster.

View File

@ -4,7 +4,7 @@ set -euo pipefail
main() { main() {
cd "$(dirname "$0")/../.." cd "$(dirname "$0")/../.."
yarn yarn --frozen-lockfile
git submodule update --init git submodule update --init
# We do not `yarn vscode` to make test.sh faster. # We do not `yarn vscode` to make test.sh faster.

View File

@ -4,7 +4,7 @@ set -euo pipefail
main() { main() {
cd "$(dirname "$0")/../.." cd "$(dirname "$0")/../.."
yarn yarn --frozen-lockfile
yarn vscode yarn vscode
yarn build yarn build
yarn build:vscode yarn build:vscode

View File

@ -4,7 +4,7 @@ set -euo pipefail
main() { main() {
cd "$(dirname "$0")/../.." cd "$(dirname "$0")/../.."
yarn yarn --frozen-lockfile
git submodule update --init git submodule update --init
# We do not `yarn vscode` to make test.sh faster. # We do not `yarn vscode` to make test.sh faster.