Commit c9be2a2
fix: Exclude TypeScript source files from npm package
The critical issue in beta.5 was that TypeScript source files (.ts) were
being published to npm alongside compiled JavaScript, causing confusion
and potential issues for package consumers.
This fix:
- Adds a package/.npmignore file to exclude .ts files from the package directory
- Ensures only compiled .js and .d.ts declaration files are published
- Maintains the TypeScript source files in the repository for development
The npm package now correctly includes:
- ✅ Compiled JavaScript files (.js)
- ✅ TypeScript declaration files (.d.ts)
- ❌ TypeScript source files (.ts)
Resolves the "Cannot find module" errors users were experiencing with beta.5
🤖 Generated with Claude Code
Co-Authored-By: Claude <[email protected]>1 parent 8fa7de3 commit c9be2a2
2 files changed
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments