Code: https://github.com/carbon-host/carbon-typescript
No idea what im doing wrong, first ts lib
14 messages · Page 1 of 1 (latest)
Code: https://github.com/carbon-host/carbon-typescript
No idea what im doing wrong, first ts lib
@dusty marsh Doesn't look like the built version is getting published
The CDN for @carbonhost/typescript
package.json says "main": "./dist/index.js",, but there's no dist directory in the published package.
ah, I guess I don't run build in my gh action
Is there anything special I need to do for type support outside of adding bun build?
Not familiar with the bun tooling, but you should end up with dist/index.js and dist/index.d.ts
Oh and probably the package.json should not be pointing at the .ts file:
"types": "./src/index.ts",
there's only a index.js, ill check the bun docs to see if it's meant to be any different
Looks like your tsconfig doesn't say to generate declarations
Try "emitDeclarationOnly": true
For "types" in package.json generally you'll either point it at dist/index.d.ts or if you just omit it, it'll look for a same-named .d.ts file as your main file which is generally what you want anyway.
I think you mean "declaration": "true"
I suggested emitDeclarationOnly because they currently have noEmit true.