🔧 Fix @types package to prevent build artifact emission

- 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 <noreply@anthropic.com>
This commit is contained in:
Lilith 2026-01-02 05:06:45 -08:00
parent c45a7e94b0
commit 23f1212231
2 changed files with 13 additions and 2 deletions

11
@packages/@types/.gitignore vendored Normal file
View file

@ -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

View file

@ -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"]
}