Skip to content

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

@dhorkin

Description

@dhorkin

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))

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