-
fix(pi-fff): install fff-bun so bun runtimes can load the SDK (#689) (#694)
发布于
2026-07-20 18:44:34 +00:00 PR #669 made sdk.ts dynamically import @ff-labs/fff-bun when running under
bun, but only added it as an optional peer dependency. Package managers do
not install optional peers by default, sopi install npm:@ff-labs/pi-fff
on a bun-only host produced a node_modules tree without @ff-labs/fff-bun
and pi crashed at session_start with "Cannot find module '@ff-labs/fff-bun'".Promote both SDKs to regular deps. Bundle size cost is minor (SDKs are TS
shims over the same optional native bins) and this guarantees the dynamic
import in sdk.ts always resolves regardless of runtime or installer.Closes #689
Co-authored-by: gustav-fff 286169375+gustav-fff@users.noreply.github.com
下载附件