fix: preset-mobile peer dep needs republish (0.3.0 → 0.4.0)#10
Merged
Conversation
The 0.4.0 release (#8) updated preset-mobile's peer @omit-design/engine from ^0.3.0 to ^0.4.0 locally, but I declared preset-mobile "unchanged" and didn't republish it. As a result, npm-published preset-mobile@0.3.0 still pins engine ^0.3.0, so `npx omit-design init` followed by `npm install` fails with ERESOLVE (scaffold pins engine ^0.4, peer demands ^0.3). Fix: - bump preset-mobile 0.3.0 → 0.4.0 so the peer range reaches npm. Only its peerDependencies range changed; no source / API change — but per SemVer narrowing a peer is breaking, so minor in pre-1.0. - template pin @omit-design/preset-mobile ^0.3 → ^0.4 in templates/init/package.json.tmpl - cli 0.4.1 → 0.4.2 carrying the template-pin change Verified fresh init + bun install + lint pass end-to-end. Co-Authored-By: Claude Opus 4.7 (1M context) <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
The 0.4.0 release (#8) updated
preset-mobile's peer@omit-design/enginefrom^0.3.0to^0.4.0locally, but I declaredpreset-mobile "unchanged" in that PR and didn't republish it. The
npm-published preset-mobile@0.3.0 still demands
engine ^0.3.0, sonpx @omit-design/cli@latest initfollowed bynpm installfails:Fix
preset-mobile0.3.0 → 0.4.0. OnlypeerDependencies.@omit-design/enginerange changed; no source / API change. Per SemVer narrowing a peer range is breaking, so minor (pre-1.0).@omit-design/preset-mobile ^0.3 → ^0.4intemplates/init/package.json.tmpl.Test plan
bun run --filter @omit-design/cli build— greenomit-design init demo→package.jsonpinspreset-mobile ^0.4bun installresolves cleanly withfile:overrides (mirroring future npm state)bun run lint→✓ no design/*.tsx files yet — nothing to lintexit 0Publish plan
Order matters (engine peer relationship):
engine 0.4.0 / dev-server 0.2.0 / eslint-plugin 0.3.0 / figma-plugin 0.1.2 remain unchanged.
🤖 Generated with Claude Code