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

error when using passThrough #1658

Open
ceonizm opened this issue Oct 7, 2024 · 0 comments
Open

error when using passThrough #1658

ceonizm opened this issue Oct 7, 2024 · 0 comments

Comments

@ceonizm
Copy link

ceonizm commented Oct 7, 2024

when using the passThrough options I would expect the tsc command arguments to not comport the list of files to compile otherwise the tsc command produce this error:
error TS5042: Option 'project' cannot be mixed with source files on a command line.

Expected Behaviour

/path/to/tsc --project /path/to/tsconfig.json

Actual Behaviour

Actually the command adds the list of files first
/path/to/tsc file1.ts file2.ts --project /path/to/tsconfig.json

Steps to Reproduce the Problem

here's the config I use in gruntfile:
editor: { tsconfig: { tsconfig: path.normalize(path.resolve('./tsconfig.json')), passThrough: true },

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

No branches or pull requests

1 participant