From 2679e783073f2b0797870b567573eb59832991a6 Mon Sep 17 00:00:00 2001 From: Miguel Rasero Date: Wed, 10 Jun 2026 21:07:34 +0000 Subject: [PATCH] fix(studio): drop bundled @runflow-io/sdk from peerDependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .changeset/studio-sdk-packaging.md | 5 +++++ bun.lock | 3 +-- packages/studio/package.json | 3 +-- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .changeset/studio-sdk-packaging.md diff --git a/.changeset/studio-sdk-packaging.md b/.changeset/studio-sdk-packaging.md new file mode 100644 index 0000000..bd42c4e --- /dev/null +++ b/.changeset/studio-sdk-packaging.md @@ -0,0 +1,5 @@ +--- +"@runflow-io/studio": patch +--- + +Stop declaring `@runflow-io/sdk` as a peerDependency — it has always been bundled into the studio's dist (`tsup noExternal`), so consumers never needed to install it. This also stops changesets from major-bumping the studio whenever the bundled SDK takes a minor. The build now tracks the workspace SDK directly (`workspace:*` devDependency). diff --git a/bun.lock b/bun.lock index 2e2c864..14d36ed 100644 --- a/bun.lock +++ b/bun.lock @@ -46,7 +46,7 @@ "jszip": "^3.10.1", }, "devDependencies": { - "@runflow-io/sdk": "^0.0.3", + "@runflow-io/sdk": "workspace:*", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "react": "^18.3.1", @@ -56,7 +56,6 @@ "vitest": "^2.1.8", }, "peerDependencies": { - "@runflow-io/sdk": "^0.0.3", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0", }, diff --git a/packages/studio/package.json b/packages/studio/package.json index 0d23241..4a8428a 100644 --- a/packages/studio/package.json +++ b/packages/studio/package.json @@ -44,12 +44,11 @@ "jszip": "^3.10.1" }, "peerDependencies": { - "@runflow-io/sdk": "^0.0.3", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" }, "devDependencies": { - "@runflow-io/sdk": "^0.0.3", + "@runflow-io/sdk": "workspace:*", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "react": "^18.3.1",