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

When specifying a folder to compile, empty js files are output for .d.ts declaration files #839

Open
bbugh opened this issue Jul 19, 2024 · 0 comments

Comments

@bbugh
Copy link

bbugh commented Jul 19, 2024

Given a file setup that functions:

src/main.ts
src/types.d.ts

When running sucrase like this:

npx sucrase ./src -d ./dist --transforms typescript

Then the dist folder contains:

src/main.js
src/types.d.js

And the src/types.d.js contains only whitespace.

Expectation: d.ts files should read as part of the TypeScript processing, but should not be output.

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

1 participant