Repository navigation
Build the published example in CI and clean dist before builds - #11
Merged
Merged
Conversation
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>
5 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to the 0.2.0 release, which is on npm and tagged
v0.2.0.examples/published-next-app/package-lock.jsonnow locksmutaflowand@mutaflow/devtools0.2.0 from npm.published-examplejob runsnpm ci,typecheckandnext buildwithout the workspace.buildcleansdistfirst. Each package has acleanscript and runs it asprebuild, soprepublishOnlycleans too.dist/next/mutation.*from an older build of another branch, becausetscnever removes stale output.cleanused PowerShell; it now runs the package scripts, which use Node and work on any OS.npm audit fix, with no major upgrades:undiciandsource-map-js, which come in throughjsdom;npm auditnow reports 0;nextfrom 15.5.14 to 15.5.29, which fixes the critical advisory, and updatesnanoid,sharpandsource-map-js.postcssbundled with Next 15 still has findings. They only go away with Next 16.RELEASING.mddescribes checkingnpm whoamiandnpm owner lsbefore publishing. npm answers E404 when the account does not own the package, andnpm loginreuses the browser session.Test plan
npm ci, thennpm run typecheck, thennpm test(62 tests, plus 5node:testtests);examples/next-appand inexamples/published-next-app:npm ci, thentypecheck, thennext build.packages/mutaflow/distis removed bynpm run build --workspace mutaflow.npm run cleanremoves all threedistfolders.🤖 Generated with Claude Code