package: ship declarations (dist/types, the "types" condition) and a Node JS entry for 'storebound'; Bun keeps the .ts source. 0.8.5 exported only cli/lib/config.ts, so tsc (next build, vue-tsc, tsc --noEmit) failed on a scaffolded storebound.config.ts and broke a Next app's build; a test type-checks the template against the packed entry under bundler / node16 / nodenext without @types/node. check fails on the template's own placeholders (Example Studio, bare example.com URLs and addresses)

This commit is contained in:
CRTkafa 2026-10-15 05:49:05 +08:00
parent 77f141e223
commit d717ceb4cd
10 changed files with 138 additions and 7 deletions

View file

@ -28,10 +28,16 @@
"storebound": "dist/storebound.mjs"
},
"exports": {
".": "./cli/lib/config.ts"
".": {
"types": "./dist/types/lib/config.d.ts",
"bun": "./cli/lib/config.ts",
"default": "./dist/config.js"
}
},
"files": [
"dist/storebound.mjs",
"dist/config.js",
"dist/types",
"cli",
"templates",
"skills",
@ -87,5 +93,6 @@
"homepage": "https://git.crt.fyi/CRT/storebound",
"bugs": {
"url": "https://git.crt.fyi/CRT/storebound/issues"
}
},
"types": "./dist/types/lib/config.d.ts"
}