build(sdk): add exports.bun condition pointing at src for compile
bun build --compile in the cli release workflow couldn't resolve @claudemesh/sdk because dist/ never gets built (--ignore-scripts). adding exports.bun -> ./src/index.ts lets bun consume the typescript sources directly while npm consumers keep using dist/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,14 @@
|
||||
"description": "SDK for connecting any process to a claudemesh mesh",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"bun": "./src/index.ts",
|
||||
"import": "./dist/index.js",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"clean": "rm -rf dist"
|
||||
|
||||
Reference in New Issue
Block a user