mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-13 03:20:33 -07:00
fix(cli): resolve devtools build issues and update third-party notices
This commit is contained in:
@@ -22,6 +22,16 @@ import { existsSync } from 'node:fs';
|
||||
import { dirname, join } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
// Increase memory limit for all subprocesses (tsc, etc) to prevent OOM in CI.
|
||||
if (
|
||||
!process.env.NODE_OPTIONS ||
|
||||
!process.env.NODE_OPTIONS.includes('max-old-space-size')
|
||||
) {
|
||||
process.env.NODE_OPTIONS = `${
|
||||
process.env.NODE_OPTIONS || ''
|
||||
} --max-old-space-size=8192`.trim();
|
||||
}
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
const root = join(__dirname, '..');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user