Skip to content
Merged
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
10 changes: 10 additions & 0 deletions lib/runtime.func
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,16 @@ setup_nodejs() {
# instead, so an unapproved build warns rather than aborts.
if command -v pnpm >/dev/null 2>&1; then
pnpm config set --global strictDepBuilds false >/dev/null 2>&1 || true
pnpm config set --global fetch-timeout 600000 >/dev/null 2>&1 || true
pnpm config set --global network-concurrency 8 >/dev/null 2>&1 || true
fi

if command -v yarn >/dev/null 2>&1; then
if [[ "$(yarn --version 2>/dev/null | cut -d. -f1)" == "1" ]]; then
$STD yarn config set network-timeout 600000 2>/dev/null || true
else
$STD yarn config set --home httpTimeout 600000 2>/dev/null || true
fi
fi
}

Expand Down
Loading