From 6271be8053abcecb1619307ef375a4f3a2c470cb Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Tue, 15 Sep 2020 23:25:21 -0400 Subject: [PATCH] fix: declaration is actually false by default - 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 --- packages/tsconfig-reference/scripts/tsconfigRules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tsconfig-reference/scripts/tsconfigRules.ts b/packages/tsconfig-reference/scripts/tsconfigRules.ts index b2b99b02f76a..7caa1820eed1 100644 --- a/packages/tsconfig-reference/scripts/tsconfigRules.ts +++ b/packages/tsconfig-reference/scripts/tsconfigRules.ts @@ -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",