From 3add2cbc498fda37ac112acae1c94f5a36325e93 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Thu, 14 May 2026 17:11:03 +0000 Subject: [PATCH] fix(action/tsconfig): noEmit + exclude dist to silence editor TS5055 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit action/tsconfig.json had "exclude": [] (overriding the default outDir exclusion) and unset noEmit, so tsserver pulled action/dist/**/*.d.ts into the program and flagged 92 TS5055 errors ("Cannot write file ... .d.ts because it would overwrite input file") any time dist/ existed. the CLI typecheck script passes --noEmit so it never tripped — only the editor was affected. emit is owned by tsconfig.exports.json, which extends this one and overrides noEmit: false, emitDeclarationOnly: true. so the main config is editor/typecheck only and should declare noEmit: true. --- tsconfig.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 9b8ee73..eeedd3c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,7 +19,8 @@ "forceConsistentCasingInFileNames": true, "stripInternal": true, "moduleDetection": "force", - "useUnknownInCatchVariables": true + "useUnknownInCatchVariables": true, + "noEmit": true }, - "exclude": [] + "exclude": ["dist"] }