From 570bd3238bd6b79ab6a4e3979efd821a9920f527 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:14:38 -0400 Subject: [PATCH] Re-add the fix --- files/__addonLocation__/tsconfig.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/files/__addonLocation__/tsconfig.json b/files/__addonLocation__/tsconfig.json index dd910f9..a80eff6 100644 --- a/files/__addonLocation__/tsconfig.json +++ b/files/__addonLocation__/tsconfig.json @@ -10,6 +10,25 @@ "compilerOptions": { "allowJs": true, "declarationDir": "declarations", + /** + 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