Skip to content

fix(studio): drop bundled @runflow-io/sdk from peerDependencies#7

Merged
miguelrisero merged 1 commit into
mainfrom
mr/studio-sdk-packaging
Jun 10, 2026
Merged

fix(studio): drop bundled @runflow-io/sdk from peerDependencies#7
miguelrisero merged 1 commit into
mainfrom
mr/studio-sdk-packaging

Conversation

@miguelrisero

Copy link
Copy Markdown
Contributor

Resolves the packaging inconsistency flagged in #4's review: the SDK is tsup-noExternal bundled into the studio dist, so the peerDependency was never needed by consumers — and it was actively harmful: changesets major-bumped the studio to 1.0.0 in the auto-generated version PR (#6) because the sdk's 0.1.0 minor left the ^0.0.3 peer range.

  • peerDependencies: remove @runflow-io/sdk (react/react-dom stay)
  • devDependencies: ^0.0.3workspace:* so the build always compiles against the workspace SDK (a registry ^0.0.3 would silently pin the OLD sdk once 0.1.0 ships)
  • patch changeset included

After merge, the Release workflow regenerates the version PR with studio at 0.1.0 alongside sdk/proxy.

Verified: build 10/10, studio tests green, typecheck + lint green.

🤖 Generated with Claude Code

The SDK is inlined into the studio dist via tsup noExternal — consumers
never install it, so the peer declaration was wrong packaging (flagged
by CodeRabbit in #4 review). Concretely it also made changesets bump
the studio to 1.0.0 when the sdk took its 0.1.0 minor (peer range
^0.0.3 went out of range). devDependency switched to workspace:* so the
build always compiles against the workspace SDK rather than a stale
registry version once versions diverge.
@miguelrisero miguelrisero merged commit 333bbc3 into main Jun 10, 2026
1 check passed
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