Skip to content

Commit

Permalink
omit incremental flag completely
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Aug 15, 2022
1 parent 7efbfcd commit 26978a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/build.ts
Expand Up @@ -82,7 +82,7 @@ async function buildTypeScript(
await execa("npx", [
"tsc",
...compilerOptionsToArgs(typeScriptCompilerOptions("esm")),
options.incremental ? "--incremental" : "",
...(options.incremental ? ["--incremental"] : []),
"--outDir",
join(buildPath, "esm"),
])
Expand All @@ -92,7 +92,7 @@ async function buildTypeScript(
await execa("npx", [
"tsc",
...compilerOptionsToArgs(typeScriptCompilerOptions("cjs")),
options.incremental ? "--incremental" : "",
...(options.incremental ? ["--incremental"] : []),
"--outDir",
join(buildPath, "cjs"),
])
Expand Down

0 comments on commit 26978a7

Please sign in to comment.