Commit 3c17eb8
committed
chore(publish): exclude all test files from npm package
Update the files field to properly exclude test files:
- Add `!examples/*.test.ts` to exclude example test files
- Add `!src/**/*.test.ts` to exclude unit test files
- Add `!src/**/*.test-d.ts` to exclude type test files
The previous pattern `!**/*.test.ts` at the start didn't work
because npm applies negation patterns only to already-included files.1 parent 80c638d commit 3c17eb8
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
0 commit comments