Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,16 @@ yarn_node_modules() {

yarn_2_install() {
local build_dir=${1:-}
local production=${YARN_PRODUCTION:-false}

echo "Running 'yarn install' with yarn.lock"
cd "$build_dir" || return

monitor "yarn-2-install" yarn install --immutable 2>&1
if [ "$production" == "production" ]; then
monitor "yarn-2-install" yarn workspaces focus --production 2>&1
else
monitor "yarn-2-install" yarn install --immutable 2>&1
fi
}

yarn_prune_devdependencies() {
Expand Down