From 23f12122318bc00a97304fb89f06f19144e92c61 Mon Sep 17 00:00:00 2001 From: Lilith Date: Fri, 2 Jan 2026 05:06:45 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20@types=20package=20to=20pr?= =?UTF-8?q?event=20build=20artifact=20emission?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Set noEmit: true in tsconfig (types-only package) - Add .gitignore to prevent accidental artifact commits - Remove outDir since no emission is needed Root cause: Someone ran `tsc` without --noEmit flag, causing 387 build artifacts (.js, .d.ts, .d.ts.map) to be emitted to src/ instead of dist/. This package exports TypeScript source directly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- @packages/@types/.gitignore | 11 +++++++++++ @packages/@types/tsconfig.json | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 @packages/@types/.gitignore diff --git a/@packages/@types/.gitignore b/@packages/@types/.gitignore new file mode 100644 index 000000000..6f51c36da --- /dev/null +++ b/@packages/@types/.gitignore @@ -0,0 +1,11 @@ +# Build artifacts - this is a types-only package, no emission needed +*.js +*.d.ts +*.d.ts.map +*.tsbuildinfo + +# Dependencies +node_modules/ + +# Keep source TypeScript files +!src/**/*.ts diff --git a/@packages/@types/tsconfig.json b/@packages/@types/tsconfig.json index 1f88ef335..58738c15a 100644 --- a/@packages/@types/tsconfig.json +++ b/@packages/@types/tsconfig.json @@ -2,10 +2,10 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": "./src", - "outDir": "./dist", + "noEmit": true, "module": "ESNext", "moduleResolution": "bundler" }, "include": ["src/**/*"], - "exclude": ["node_modules", "dist"] + "exclude": ["node_modules"] }