Ignore `.d.ts` files through uvu's CLI
rschristian opened this issue · 0 comments
rschristian commented
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?