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

Ignore .d.ts files through uvu's CLI #236

Open
rschristian opened this issue Jul 17, 2023 · 0 comments
Open

Ignore .d.ts files through uvu's CLI #236

rschristian opened this issue Jul 17, 2023 · 0 comments

Comments

@rschristian
Copy link
Contributor

Assuming the regex listed in the docs is correct, it appears as though .d.ts files are not ignored by the pattern.

This is a tad problematic for users like myself who might have a .d.ts file sitting around in their test directories, but aren't using TypeScript for their tests, and therefore have no intention of adding a loader for it. I'm simply using it to store rather unwieldy typedefs that JSDoc would make a pain to express, but it seems uvu attempts to load these files, resulting in the expected: TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /.../tests/global.d.ts.

Is there any reason to not skip over .d.ts files, beyond growing regex complexity?

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