This repository was archived by the owner on Feb 14, 2026. It is now read-only.
Commit fd04a19
Fix broken --version in global npm installs
rootDir: "." caused tsc to output to dist/src/index.js, making the
relative require("../package.json") resolve to dist/package.json
(which doesn't exist). Add tsconfig.build.json with rootDir: "src"
so output goes to dist/index.js where the path resolves correctly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 21a3bb7 commit fd04a19
3 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments