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

Incorrect files path (does not catch all files) #61

Open
FFdhorkin opened this issue Oct 3, 2023 · 1 comment
Open

Incorrect files path (does not catch all files) #61

FFdhorkin opened this issue Oct 3, 2023 · 1 comment

Comments

@FFdhorkin
Copy link

FFdhorkin commented Oct 3, 2023

cli.js has this line:
const files = args.filter(file => /\.(ts|tsx)$/.test(file))

This is incorrect - it doesn't support cts or mts files. It also doesn't work with js/cjs/mjs files with checkJs turned on.

Should be something like const files = args.filter(file => /\.(c|m)?(j|t)sx?$/.test(file))

@jonasgeiler
Copy link

jonasgeiler commented Oct 22, 2023

My fork implemented this: https://github.com/skayo/tsc-files
Not sure if I should do a PR here since I changed some other things, but for now I'll release it as my own package (@jonasgeiler/tsc-files).

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

2 participants