Commit ce0a03d
fix(audience): build @imtbl/audience in publish workflow
The publish workflow's build step (`pnpm build`) runs nx with an explicit
project list — `@imtbl/sdk,@imtbl/checkout-widgets`. `@imtbl/audience` was
missing, so its `dist/` was never produced before `pnpm pack-npm-packages`
ran. Because `@imtbl/audience/package.json` declares `"files": ["dist"]`,
`npm pack` then shipped tarballs containing only `package.json` and
`LICENSE.md` — no compiled output.
Symptom on the registry today:
- `@imtbl/audience@0.0.1-alpha.0` and `@imtbl/audience@2.15.0-alpha.21`
both install successfully but contain no `dist/`. Anything trying to
`import { Audience } from '@imtbl/audience'` fails at module resolution
because `package.json#main` points at `dist/node/index.cjs` and the
file doesn't exist.
PR #2843 added `@imtbl/audience` to the version-seeding step, so it gets
version-bumped on every publish — but the build step was never updated
in lockstep. Add it here, and rename the workflow step labels so they
match what's actually being built/packed.
After this lands, the next publish should produce a real tarball. Verify
locally with:
pnpm build
cd packages/audience/sdk && pnpm pack --dry-run
The dry-run output should list files under `dist/node/`, `dist/browser/`,
and `dist/types/`.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e9b5538 commit ce0a03d
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments