Skip to content

Conversation

ferrybig
Copy link

In the checkJs mode, typescript will also check your JavaScript files using the types inside the JsDoc comments.

At the moment, you cannot pass a .js files to tsc-files, because it gives the following error:

error TS5042: Option 'project' cannot be mixed with source files on a command line.

This is because the js files are appended after the tsc command. This commit allows the tsc-files plugin to also work with the checkJs mode

In the checkJs mode, typescript will also check your JavaScript files using the types inside the JsDoc comments.

At the moment, you cannot pass a .js files to tsc-files, because it gives the following error:

    error TS5042: Option 'project' cannot be mixed with source files on a command line.

This is because the js files are appended after the tsc command. This commit allows the tsc-files plugin to also work with the checkJs mode
@jonasgeiler
Copy link

jonasgeiler commented Oct 22, 2023

My fork implemented this: https://github.com/skayo/tsc-files
Not sure if I should do a PR here, but for now I'll release it as my own package (@jonasgeiler/tsc-files).

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

Successfully merging this pull request may close these issues.

2 participants