Skip to content

Rebuild the committed platform dist after PT-4304 - #9

Merged
tjcouch-sil merged 1 commit into
mainfrom
rebuild-committed-dist-after-4304
Sep 12, 2026
Merged

tjcouch-sil merged 1 commit into
mainfrom
rebuild-committed-dist-after-4304

Conversation

@tjcouch-sil

@tjcouch-sil tjcouch-sil commented Sep 12, 2026

Copy link
Copy Markdown
Member

scripture-editors' main is red, and the reason matters beyond CI: the editor
paranext-core is staging right now does not contain PT-4304.

What happened

packages/*/dist is committed so paranext-core can stage the editor by copying it — no pnpm,
no nx, nothing on the consumer side. That convention landed in #1.

#538 (PT-4304, block-verse view) was
branched before that and merged 26 minutes after it. Its merge moved src/; dist/ stayed at the
build #1 committed. So on main today:

VerseLayout / "block-verse"
packages/platform/src present
packages/platform/dist/index.d.ts (committed) absent

git log -1 -- packages/platform/dist still points at #1's merge commit.

The Check the committed build output is current step is exactly the guard for this, and it is
what is failing on main — and, inherited, on every open PR.

Why it is not only a CI problem

platform-yalc is main + one commit, so it carries the same stale dist/, and core's staging
copies it verbatim. Core's builds are green because a stale build is still a valid build — just
one release behind its own source. Nothing else would have caught that.

The change

node scripts/rebuild-committed-output.mjs, committed. etc/*.api.md was already current, so only
dist/ moves — the api report went in with #538, the bundle did not.

Verified locally with node scripts/verify-committed-dist.mjs (Committed build output is current. ✓).

After this merges

Run npm run move-platform-yalc so consumers pick the rebuilt dist/ up. The editor's
dependencies and peerDependencies do not change here, so paranext-core needs no lockfile
refresh and verify-platform-yalc.yml will pass.

Worth a follow-up

Any older branch merged into main from here on has the same shape: its src/ wins the merge and
its dist/ is whatever the branch point had. CI catches it after the merge, on a red main,
rather than on the PR. #5 — giving the
published artifacts their own directory no nx task owns — is the structural fix.

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

🤖 Generated with Claude Code

https://claude.ai/code/session_01JsciPEjXb7X4DZzahoWPwo


This change is Reviewable

`packages/*/dist` is committed so paranext-core can stage the editor by copying it,
with no pnpm or nx on the consumer side. PT-4304's branch predated that convention,
so merging it moved `src/` while `dist/` stayed at the previous build: the committed
declarations carry no `VerseLayout` and no `"block-verse"` view, and the committed
bundle carries none of the code behind them.

Regenerated with `node scripts/rebuild-committed-output.mjs`. `etc/*.api.md` was
already current, so only `dist/` moves.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JsciPEjXb7X4DZzahoWPwo
@tjcouch-sil
tjcouch-sil merged commit 6920a2a into main Sep 12, 2026
5 checks passed
@irahopkinson
irahopkinson deleted the rebuild-committed-dist-after-4304 branch September 22, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant