Skip to content

Commit

Permalink
fix: Override the noEmit option.
Browse files Browse the repository at this point in the history
This ensures we generate intermediate declaration files.

fixes #96
  • Loading branch information
Swatinem committed May 22, 2020
1 parent b92324d commit f3954e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const OPTIONS_OVERRIDE: ts.CompilerOptions = {
// Ensure ".d.ts" modules are generated
declaration: true,
// Skip ".js" generation
noEmit: false,
emitDeclarationOnly: true,
// Skip code generation when error occurs
noEmitOnError: true,
Expand Down
1 change: 1 addition & 0 deletions tests/testcases/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

"newLine": "lf",

"noEmit": true,
"declaration": true,
"emitDeclarationOnly": true
// "outDir": "./"
Expand Down

0 comments on commit f3954e2

Please sign in to comment.