This repository was archived by the owner on Aug 20, 2026. It is now read-only.
Commit ab5a6bb
committed
fix: add files field and prepublishOnly build step
The published 1.0.0 tarball included raw source files instead of the
built dist/ output, because the package.json had no 'files' field
(npm defaulted to including everything not gitignored, which excluded
dist/ since it is in .gitignore) and no 'prepublishOnly' lifecycle hook
to build before publishing. Add both: files: [dist] so only the built
output ships, and prepublishOnly: tsdown so npm builds before pack.1 parent fef36fa commit ab5a6bb
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
0 commit comments