next.js
a6f9167c - Bump Node heap limit for lint-no-typescript to avoid OOM in CI (#90996)

Commit
2 days ago
Bump Node heap limit for lint-no-typescript to avoid OOM in CI (#90996) The `lint` job in CI has been hitting `FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory` during `lint-eslint`. `lint-no-typescript` runs `prettier-check`, `lint-eslint .`, and `lint-language` in parallel via `run-p`. The `lint-eslint` script uses `eslint.cli.config.mjs` which enables type-checked rules with `parserOptions.project: true` — the config comment itself notes this "needs a lot of memory". Node's default heap limit caps around ~2-4GB regardless of available system memory, which isn't enough when the type-aware parser loads the full monorepo project graph. This sets `NODE_OPTIONS="--max-old-space-size=8192"` on the `lint-no-typescript` script via `cross-env`. The env var inherits into all three `run-p` children, giving eslint the headroom it needs without touching CI workflow files.
Author
Parents
Loading