Publish sdk src files to npm, fix sdk resolution in development
Fix https://github.com/sst/opencode/issues/1579 Fix https://github.com/sst/opencode-sdk-js/issues/25
@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. bun i only copies files in dist into node_modules
can you not do bun run dev or bun run --conditions=development ....?
it makes no difference, it seems like your version of bun copies the src folder while mine does not.
it's good practice anyway to keep src files on npm to make things like sourcemaps and declaration maps work
Currently the sdk package can't be used with vite-node because it uses the development condition, which is missing from the npm package
please merge