Skip to content

demo: rebuild the workspace lib before build and dev#19

Merged
evoactivity merged 2 commits into
mainfrom
demo/build-lib-first
Jul 19, 2026
Merged

demo: rebuild the workspace lib before build and dev#19
evoactivity merged 2 commits into
mainfrom
demo/build-lib-first

Conversation

@evoactivity

@evoactivity evoactivity commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Stale eksml/dist builds have twice produced misleading local benchmark comparisons (an April-old dist during the easysax investigation, and the recent local-vs-deployed 8% confusion). The demo consumes @eksml/xml through dist/, so a stale build silently benchmarks old code.

build, dev, and start now run pnpm --filter @eksml/xml build first (~700ms). Explicit chaining instead of prebuild lifecycle hooks so behavior doesn't depend on pnpm's enable-pre-post-scripts setting.

Notes:

  • dev rebuilds once at startup — live lib changes during a dev session still need a manual rebuild (or a future watch task).

Verified: demo pnpm build regenerates eksml/dist before bundling, 7 SSG pages build cleanly.

Stale eksml/dist builds have twice produced misleading local benchmark
comparisons. The demo's build, dev, and start scripts now rebuild
@eksml/xml first (~700ms) so local runs always reflect current source.
The demo's build script now builds the library itself.
@evoactivity
evoactivity merged commit 97a0a30 into main Jul 19, 2026
6 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant