opencode
opencode copied to clipboard
fix(postinstall): prebuild required workspace packages to prevent bun dev from failing
- Fix: Missing prebuild of required workspace packages during postinstall causes
bun run devto fail afterbun install(see #1579). - Solution: Add generate/build steps for
packages/sdk/jsin the postinstall phase. - Verification: In a fresh environment,
bun install && bun run devstarts successfully with no additional manual steps.
Hmm for me this isn't necessary, maybe specific to your environment?
Can you share more about your OS / (chip version if Mac), bun version, node version
if I do a fresh clone of opencode, run bun i then bun run dev I have no issues
yeah some people keep having this issue and i can't replicate it
I have same problem
This is the issue: the @opencode-ai/sdk package only has dist folder in package.json files, so bun install only copies dist folder and not src. So development imports fail
Opened https://github.com/sst/opencode/pull/2567