isaacs / tshy

Other
869 stars 17 forks source link

Include .js and .d.ts files #90

Open thomasballinger opened 1 month ago

thomasballinger commented 1 month ago

I have some .js and .d.ts files in src/ I'd like to end up in dist/esm/ but the .tshy/esm.json doesn't include these file types.

https://github.com/isaacs/tshy/blob/fcb9003f58eac648574c660cb701624008d3c348/src/tsconfig.ts#L79-L84

Is this something that makes sense to support?

repro: git clone https://github.com/thomasballinger/tshy-repro; npm i; npx tshy and note that src/raw.js doesn't end up in dist/esm.

shaungrady commented 4 weeks ago

Would love to see this as well. Just hit this limitation with .d.ts.