Skip to content

feat(init): seed version and wire changesets sync with --npm - #168

Open
unional wants to merge 2 commits into
mainfrom
up-164-init
Open

unional wants to merge 2 commits into
mainfrom
up-164-init

Conversation

@unional

@unional unional commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Refs #164 (items 1, 2)

  • Item 2: plugin init --npm copies the package.json version into the plugin.json it writes, so Codex builds and publish sync-version has a starting point.
  • Item 1: when the workspace root carries .changeset/ and its version script is exactly changeset version, --npm appends && universal-plugin publish sync-version --root <plugin-root> and adds universal-plugin as a root devDependency (pinned to the running CLI's version). A custom or absent script is left alone and init prints the line to add; an already wired script is left unchanged.
  • init-universal-plugin skill: Phase 3 shows the rewrite in the plan and asks before running init over the user's root package.json.
  • Spec: plugin/init README + feature scenarios added.

🤖 Generated with Claude Code

unional and others added 2 commits October 7, 2026 19:54
plugin init --npm copies package.json version into plugin.json, and when
.changeset/ exists with a stock 'changeset version' root script, appends
publish sync-version and adds universal-plugin as a root devDependency.

Refs #164 (items 1, 2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sync

Refs #164 (item 1)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Oct 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0864263

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
universal-plugin Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
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