Skip to content

Commit 26978a7

Browse files
committed
omit incremental flag completely
1 parent 7efbfcd commit 26978a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async function buildTypeScript(
8282
await execa("npx", [
8383
"tsc",
8484
...compilerOptionsToArgs(typeScriptCompilerOptions("esm")),
85-
options.incremental ? "--incremental" : "",
85+
...(options.incremental ? ["--incremental"] : []),
8686
"--outDir",
8787
join(buildPath, "esm"),
8888
])
@@ -92,7 +92,7 @@ async function buildTypeScript(
9292
await execa("npx", [
9393
"tsc",
9494
...compilerOptionsToArgs(typeScriptCompilerOptions("cjs")),
95-
options.incremental ? "--incremental" : "",
95+
...(options.incremental ? ["--incremental"] : []),
9696
"--outDir",
9797
join(buildPath, "cjs"),
9898
])

0 commit comments

Comments
 (0)