Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for typescript in the CheckJS mode #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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