mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-19 04:18:32 +01:00
Paperclip: type-check the server with one checker so the build fits in 8 GB
Since v2026.1106.0 the server's tsc 7 run peaks at ~8.5 GB with its default 4 checkers and gets killed in an 8 GB container (exit 137, #18819). With one checker it peaks at ~5.7 GB; the full build passes at 8 GB.
This commit is contained in:
1 parent
1840c9f65d
commit
8e1fef0d06
2 files changed
+3
No files matched your search
@@ -54,6 +54,7 @@ function update_script() {
|
||||
msg_warn "The lockfile of this release is out of date, resolving dependencies without it"
|
||||
$STD pnpm install --no-frozen-lockfile
|
||||
}
|
||||
sed -i 's/"compilerOptions": {/&\n "checkers": 1,/' server/tsconfig.json
|
||||
$STD pnpm build
|
||||
unset NODE_OPTIONS
|
||||
msg_ok "Rebuilt Paperclip"
|
||||
|
||||
@@ -36,6 +36,8 @@ $STD pnpm install --frozen-lockfile || {
|
||||
msg_warn "The lockfile of this release is out of date, resolving dependencies without it"
|
||||
$STD pnpm install --no-frozen-lockfile
|
||||
}
|
||||
# tsc 7 type-checks the server with 4 checkers by default and needs ~8.5 GB that way, ~5.7 GB with one
|
||||
sed -i 's/"compilerOptions": {/&\n "checkers": 1,/' server/tsconfig.json
|
||||
$STD pnpm build
|
||||
unset NODE_OPTIONS
|
||||
msg_ok "Built Paperclip"
|
||||
|
||||
Reference in new issue
Block a user