Skip to content

Commit

Permalink
fix: declaration is actually false by default (#1092)
Browse files Browse the repository at this point in the history
- previously said "True when TS", but that isn't accurate
  - upon testing, it appears to be false by default
  - an explicit `declaration: true` is required in `tsconfig.json` for
    declaration files (`.d.ts`) to be output

- the Compiler Options docs also say it's default false too, so not sure
  why it's different in the TSConfig Reference
  - c.f. https://github.com/microsoft/TypeScript-Website/blob/46b960968f994968b237060065f651a368e5fc63/packages/documentation/copy/en/project-config/Compiler%20Options.md#L47
  • Loading branch information
agilgur5 authored Sep 17, 2020
1 parent e9afffd commit cba99d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tsconfig-reference/scripts/tsconfigRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const defaultsForOptions = {
charset: "utf8",
checkJs: "false",
composite: "true",
declaration: "True when TS",
declaration: "false",
declarationDir: " n/a",
declarationMap: "false",
diagnostics: "false",
Expand Down

0 comments on commit cba99d6

Please sign in to comment.