TS5023

error TS5023: Unknown compiler option ‘-c‘.

Broken Code ❌

1
npx tsc -c mytsconfig.json

Fixed Code ✔️

If you want to point the TypeScript compiler to a different configuration, you have to use the --project flag (see all tsc CLI options):

1
npx tsc --project mytsconfig.json