diff --git a/src/dev/typescript/run_type_check_cli.ts b/src/dev/typescript/run_type_check_cli.ts index 5d4cf14c1cd9..9eeaeb4da704 100644 --- a/src/dev/typescript/run_type_check_cli.ts +++ b/src/dev/typescript/run_type_check_cli.ts @@ -88,7 +88,7 @@ export function runTypeCheckCli() { } execInProjects(log, projects, process.execPath, (project) => [ - ...(project.name.startsWith('x-pack') ? ['--max-old-space-size=4096'] : []), + '--max-old-space-size=4096', require.resolve('typescript/bin/tsc'), ...['--project', project.tsConfigPath], ...tscArgs,