Repository navigation
Commit c1fb1d3
feat(release): npm publishing pipeline (initial 0.0.1 release) (#58)
* docs(specs): npm publishing pipeline design
Brainstormed design for shipping @pretable/core, @pretable/react, and
@cacheplane/json-stream to npm via changesets/action with provenance.
Key decisions:
- 3 public packages versioned as a fixed group, dual ESM+CJS, initial 0.0.1
- Internal seam (PretableSurface, usePretableModel, etc.) extracted to a
new private workspace package @pretable-internal/react-surface and
bundled into @pretable/react via tsup noExternal — preserves bench
measurement integrity (single source of truth for the rendered surface)
- Bundled internal deps move to devDependencies (not dependencies) so
the published manifest doesn't reference unpublishable workspace versions
- publint --strict + attw --pack verification per public package, matching
TanStack Query's per-package test:build pattern
- changesets/action@v1 with auto-merge of Version Packages PR; aligns
with Dawn's release.yml shape
- Provenance attestation enabled day-one (NPM_CONFIG_PROVENANCE + id-token
permission); trusted publishing configured manually after first 0.0.1
publishes, drops NPM_TOKEN reliance
- latest dist-tag only; pre/next premature at 0.0.x
Includes a first-release runbook covering scope ownership, branch
protection, post-publish verification, trusted publishing migration,
and rollback via npm deprecate.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* docs(plans): npm publishing pipeline implementation plan
Covers 17 tasks across 5 phases:
Phase 1 (Tasks 1-5): extract @pretable-internal/react-surface — scaffold
the new private package, move all internal/* files plus row-height.ts
and use-pretable.ts, update consumers (bench, website, streaming-demo).
Phase 2 (Tasks 6-9): switch public packages to dual ESM+CJS with tsup's
dts:true. Move bundled internal deps to devDependencies so the published
manifest doesn't reference unpublishable workspace versions.
Phase 3 (Tasks 10-12): add publint + attw verification per public
package, wire as a CI gate matching TanStack Query's pattern.
Phase 4 (Tasks 13-15): changesets fixed group, github-compact changelog,
seed initial-release.md, release.yml with provenance + auto-merge.
Phase 5 (Tasks 16-17): pre-PR validation including npm pack tarball
inspection; PR open + watch + merge.
Plan is concrete: every step has exact file paths, complete code blocks,
exact commands, and expected outputs. Self-review caught and fixed
type-cross-package dependency questions (PretableTelemetry,
usePretableModel) — those now move into react-surface alongside the
internal/ files since the surface seam transitively requires them.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* scaffold(react-surface): create empty @pretable-internal/react-surface package
* refactor(react-surface): move internal seam to its own private package
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* refactor(react): consume react-surface as workspace dependency
* refactor(apps): consume react-surface from internal package
* fix(react-surface): align typecheck tsconfig with sibling pattern
Mirror @pretable/react's tsconfig.typecheck.json shape: paths point at
dist .d.ts files instead of source files (avoids rootDir conflict),
rootDir: "src", and a single include "src" (no wildcard recursion that
tsc rejects with TS5010).
Also runs prettier:write on docs and unrelated package.json files that
the install changes touched but didn't format.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* build(core): dual ESM+CJS + dts emission via tsup
* build(react): dual ESM+CJS + dts emission via tsup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* build(json-stream): dual ESM+CJS + dts emission via tsup
* build(packaging): publint + attw verification + CI gate
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* chore(changesets): fixed group + github-compact changelog
* chore(changesets): seed initial 0.0.1 release
* ci: add release.yml — changesets/action with provenance + auto-merge
* fix(react): align build-config test with dual-ESM+CJS exports shape
Task 11's publint fix nested the types per condition (separate types for
ESM and CJS resolution paths). The build-config test still asserted the
flat pre-fix shape and broke. Update assertion to match.
Also runs prettier:write on the changeset config that the install touched.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent a3adb18 commit c1fb1d3
48 files changed
Lines changed: 2687 additions & 92 deletions
File tree
- .changeset
- .github/workflows
- apps
- bench
- src
- __tests__
- streaming-demo
- src/components
- website
- app/components
- docs/superpowers
- plans
- specs
- packages
- core
- json-stream
- react-surface
- src
- __tests__
- react
- src
- __tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | | - | |
8 | | - | |
| 10 | + | |
9 | 11 | | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
74 | 89 | | |
75 | 90 | | |
76 | | - | |
| 91 | + | |
77 | 92 | | |
78 | 93 | | |
79 | 94 | | |
| |||
133 | 148 | | |
134 | 149 | | |
135 | 150 | | |
136 | | - | |
| 151 | + | |
137 | 152 | | |
138 | 153 | | |
139 | 154 | | |
| |||
| 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 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments