From d2536c5dc4422c4de359e8e1eb8f59ed14217503 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:17:24 -0400 Subject: [PATCH] Update tsconfig.json --- files/__addonLocation__/tsconfig.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/files/__addonLocation__/tsconfig.json b/files/__addonLocation__/tsconfig.json index 2cd85f3..1dfc0f0 100644 --- a/files/__addonLocation__/tsconfig.json +++ b/files/__addonLocation__/tsconfig.json @@ -14,10 +14,23 @@ https://www.typescriptlang.org/tsconfig#noEmit We want to emit declarations, so this option must be set to `false`. + @tsconfig/ember sets this to `true`, which is incompatible with our need to set `emitDeclarationOnly`. @tsconfig/ember is more optimized for apps, which wouldn't emit anything, only type check. */ "noEmit": false, + /** + https://www.typescriptlang.org/tsconfig#emitDeclarationOnly + + We want to only emit declarations as we use Rollup to emit JavaScript. + */ + "emitDeclarationOnly": true, + + /** + https://www.typescriptlang.org/tsconfig#noEmitOnError + Do not block emit on TS errors. + */ + "noEmitOnError": false, /** https://www.typescriptlang.org/tsconfig#rootDir