blackboardsh / electrobun

Build ultra fast, tiny, and cross-platform desktop apps with Typescript.
https://www.electrobun.dev
MIT License
1.03k stars 13 forks source link

TypeScript definitions in npm package #17

Open VityaSchel opened 1 month ago

VityaSchel commented 1 month ago

Can you publish TS definitions to npm?

YoavCodes commented 1 month ago

ah my bad. Thanks for filing an issue I wouldn't have realized I broke this. 🌟

I'd been cleaning up what gets published to npm and was experimenting with pre-building the typescript apis for browser and bun processes.

What I really want and had before was just copy the source typescript for those directly to /dist (which goes to npm) so that when you actually run electrobun build for your app it should just import the parts of the api you use into your code and provide all the types as you work.

I think I just fixed/restored that. if you give 0.0.14 a try https://www.npmjs.com/package/electrobun