I want to run
tsc --build
But I want to have tsc use a different tsconfig.json file.
npx tsc --build --project tsconfig-abc.json
But I get this error
error TS5094: Compiler option '--project' may not be used with '--build'.
I've tried adding the build option to tsconfig but that doesn't seem to work?
"buildOptions": {
"build" : true
},
The answer is simply to provide the file name at the end - no param name.
tsc --build tsconfig-simple.json
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With