Skip to content

Speed up clean dev startup with runtime-only plugin SDK build - #1813

Merged
ymichael merged 1 commit into
mainfrom
bb/investigate-slow-plugin-sdk-builds-thr_6r5mveqknc
Aug 18, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/investigate-slow-plugin-sdk-builds-thr_6r5mveqknc

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Summary

  • add a cached runtime-only build task for @get-bb/plugin-sdk
  • make @bb/server#dev depend on the runtime task instead of the full SDK package build
  • preserve the full declaration-generating build for packaging and validation

Why

A clean pnpm dev only needs the SDK runtime in dist before the server builds first-party provider artifacts. The previous dependency ran all 11 portable declaration bundles first, adding roughly 15 seconds to the server startup critical path.

The forced runtime-only task completes in about 400 ms inside Turbo, while the full SDK build remains unchanged.

Testing

  • pnpm exec turbo run dev --filter=@bb/app --filter=@bb/server --filter=@bb/host-daemon --dry=json
  • pnpm exec turbo run build:runtime --filter=@get-bb/plugin-sdk --force
  • pnpm exec turbo run build --filter=@get-bb/plugin-sdk --force
  • git diff --check origin/main...HEAD

AGENT GENERATED: by GPT-5

@ymichael
ymichael merged commit bc80706 into main Aug 18, 2026
17 of 18 checks passed
@ymichael
ymichael deleted the bb/investigate-slow-plugin-sdk-builds-thr_6r5mveqknc branch August 18, 2026 19:31
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