chore: sync create-effex template versions with workspace#19
Merged
Conversation
Adds scripts/sync-template-versions.mjs which reads the current version of every @effex/* workspace package and rewrites matching dependency entries in packages/create-effex/templates/*/package.json to ^MAJOR.MINOR.PATCH. Wired into the existing Changesets version flow: "version": "changeset version && pnpm sync-template-versions" So template versions get bumped automatically alongside workspace versions every release. The script is idempotent. Also runs once now to bring existing templates up to current versions: @effex/dom ^0.0.1 -> ^1.1.0 @effex/router ^0.0.1 -> ^1.2.0 @effex/platform ^0.0.1 -> ^1.2.0 @effex/vite-plugin ^0.0.1 -> ^1.1.0 Closes #18 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Deploying effex with
|
| Latest commit: |
a3b696c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://722f2f10.effex.pages.dev |
| Branch Preview URL: | https://chore-sync-template-versions.effex.pages.dev |
Deploying effex-api with
|
| Latest commit: |
a3b696c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c7d083c5.effex-api.pages.dev |
| Branch Preview URL: | https://chore-sync-template-versions.effex-api.pages.dev |
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
scripts/sync-template-versions.mjs— reads each@effex/*workspace package'sversion, rewrites matching dependency entries inpackages/create-effex/templates/*/package.jsonto^MAJOR.MINOR.PATCHversionscript:"version": "changeset version && pnpm sync-template-versions"— so template versions track workspace versions automatically every release@effex/dom ^0.0.1 → ^1.1.0@effex/router ^0.0.1 → ^1.2.0@effex/platform ^0.0.1 → ^1.2.0@effex/vite-plugin ^0.0.1 → ^1.1.0Implementation notes
@effex/*entries; leaveseffect,@effect/platform, and other ecosystem deps alone (those have their own update cadence).templates/so a future template (e.g.templates/ssr-postgres) gets the same treatment automatically.package.jsonfiles to match prettier's expectations.Test plan
node scripts/sync-template-versions.mjs— updated 3 templates as expectedpnpm versionlocally with a dummy changeset to confirm the hook firespnpm create effexgenerated project installs cleanly against the latest published versions after the next releaseCloses #18
🤖 Generated with Claude Code