Skip to content

Build the published example in CI and clean dist before builds - #11

Merged
javaquasar merged 1 commit into
mainfrom
claude/post-release-0.2.0
Dec 3, 2026
Merged

javaquasar merged 1 commit into
mainfrom
claude/post-release-0.2.0

Conversation

@javaquasar

Copy link
Copy Markdown
Owner

Summary

Follow-up to the 0.2.0 release, which is on npm and tagged v0.2.0.

  • The published example is built in CI.
    • examples/published-next-app/package-lock.json now locks mutaflow and @mutaflow/devtools 0.2.0 from npm.
    • A new published-example job runs npm ci, typecheck and next build without the workspace.
    • This checks the install path users get from the latest release. It was left out of Build the Next.js example in CI #9 because the lockfile pointed at 0.1.x.
  • build cleans dist first. Each package has a clean script and runs it as prebuild, so prepublishOnly cleans too.
    • While publishing 0.2.0, the first tarball contained dist/next/mutation.* from an older build of another branch, because tsc never removes stale output.
    • The root clean used PowerShell; it now runs the package scripts, which use Node and work on any OS.
  • Security fixes. npm audit fix, with no major upgrades:
    • at the root it updates undici and source-map-js, which come in through jsdom; npm audit now reports 0;
    • in both examples it moves next from 15.5.14 to 15.5.29, which fixes the critical advisory, and updates nanoid, sharp and source-map-js.
    • The postcss bundled with Next 15 still has findings. They only go away with Next 16.
    • None of this changes the published packages, which have no dependencies.
  • RELEASING.md describes checking npm whoami and npm owner ls before publishing. npm answers E404 when the account does not own the package, and npm login reuses the browser session.

Test plan

  • Ran from clean installs:
    • npm ci, then npm run typecheck, then npm test (62 tests, plus 5 node:test tests);
    • in examples/next-app and in examples/published-next-app: npm ci, then typecheck, then next build.
  • A stale file in packages/mutaflow/dist is removed by npm run build --workspace mutaflow.
  • The root npm run clean removes all three dist folders.
  • CI passes on this PR, including the new job.

🤖 Generated with Claude Code

examples/published-next-app now locks mutaflow and @mutaflow/devtools
0.2.0 from npm, and a new CI job installs, typechecks and builds it
without the workspace, so the install path of the latest release is
checked on every change.

Each package's build removes dist first, so files from an older build
of another branch cannot end up in a published tarball. The root clean
script uses Node instead of PowerShell.

npm audit fix (no major upgrades) updates jsdom's undici and
source-map-js at the root and next 15.5.29, nanoid and sharp in the
examples. postcss inside Next 15 still needs Next 16.

RELEASING.md notes how to check npm ownership before publishing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@javaquasar
javaquasar merged commit 0201ab0 into main Dec 3, 2026
5 checks passed
@javaquasar javaquasar mentioned this pull request Dec 3, 2026
4 of 5 tasks
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