You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: