Commit 3a04472
fix(ci): ship src/data/*.json in published tarball (#148)
Since v0.2.5 the published npm tarball has been missing
`src/data/common-keywords.json` and `src/data/duckdb-keywords.json`,
leaving the `./data/*` exports dead (404 / unresolved module for
consumers). PR #128 split the release into separate `build`/`publish`
jobs, but the build job's `upload-artifact` step omitted `src/`, so
those files weren't on disk when the publish job ran `pnpm publish` —
and npm silently drops `files` entries that don't exist. This adds
`src/data/` to the artifact path so the keyword JSON files reach the
publish job. It also adds a vitest guard
(`src/__tests__/package-exports.test.ts`) that runs `npm pack` and
asserts every `src/`-based `exports` target is present in the tarball,
so the regression can't recur silently.
Verified: `npm pack --dry-run` now lists both JSON files; the new test
passes against the current package and fails if `src/data/*.json` is
dropped from `files`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent faee1f6 commit 3a04472
2 files changed
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments