Skip to content

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

@rschristian

Description

@rschristian

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions