Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include .js and .d.ts files #90

Open
thomasballinger opened this issue Aug 23, 2024 · 2 comments
Open

Include .js and .d.ts files #90

thomasballinger opened this issue Aug 23, 2024 · 2 comments

Comments

@thomasballinger
Copy link

thomasballinger commented Aug 23, 2024

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.

tshy/src/tsconfig.ts

Lines 79 to 84 in fcb9003

include: [
'../src/**/*.ts',
'../src/**/*.cts',
'../src/**/*.tsx',
'../src/**/*.json',
],

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.

@thomasballinger thomasballinger changed the title allowJs not respected so .js and .d.ts files not copied over to dist include .js and .d.ts files Aug 26, 2024
@thomasballinger thomasballinger changed the title include .js and .d.ts files Include .js and .d.ts files Aug 26, 2024
@shaungrady
Copy link

shaungrady commented Sep 5, 2024

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

@shellscape
Copy link

hit this as well this evening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants