From f957a4e581f29c088689be3d271a139a9a6cf32e Mon Sep 17 00:00:00 2001 From: Katsuyuki Omuro Date: Wed, 1 Apr 2026 16:36:43 +0900 Subject: [PATCH] fix: Allow aot-cache and debug-intermediate-files flags to be specified with equals --- src/parseInputs.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/parseInputs.ts b/src/parseInputs.ts index c523d88695..4fd3009a9b 100644 --- a/src/parseInputs.ts +++ b/src/parseInputs.ts @@ -174,7 +174,7 @@ export async function parseInputs(cliInputs: string[]): Promise { case '--debug-intermediate-files': { const value = cliInputs.shift(); if (value == null) { - console.error('Error: --aot-cache requires a value'); + console.error('Error: --debug-intermediate-files requires a value'); process.exit(1); } if (isAbsolute(value)) { @@ -209,6 +209,22 @@ export async function parseInputs(cliInputs: string[]): Promise { wevalBin = join(process.cwd(), value); } break; + } else if (cliInput.startsWith('--aot-cache=')) { + const value = cliInput.replace(/--aot-cache=/, ''); + if (isAbsolute(value)) { + aotCache = value; + } else { + aotCache = join(process.cwd(), value); + } + break; + } else if (cliInput.startsWith('--debug-intermediate-files=')) { + const value = cliInput.replace(/--debug-intermediate-files=/, ''); + if (isAbsolute(value)) { + debugIntermediateFilesDir = value; + } else { + debugIntermediateFilesDir = join(process.cwd(), value); + } + break; } else if (cliInput.startsWith('-')) { unknownArgument(cliInput); } else {