Commit 3856cbd
Christina Mullen
fix(metrics): add files field to exclude src from published npm package
The published npm package included src/ and tsconfig.json (monorepo
leftovers). When consumers' TypeScript resolved to the raw .ts source
files instead of compiled .d.ts declarations, skipLibCheck did not
apply, causing TS2307 errors for devDependency imports like
@webex/event-dictionary-ts.
Adding "files": ["dist"] ensures only compiled output is published,
so consumers always resolve to .d.ts files where skipLibCheck works.1 parent 7e274bf commit 3856cbd
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
0 commit comments