Skip to content

Instantly share code, notes, and snippets.

@nulltier
Created December 20, 2019 08:58
Show Gist options
  • Save nulltier/1a425e90fdae726fe516c71a111aeab5 to your computer and use it in GitHub Desktop.
Save nulltier/1a425e90fdae726fe516c71a111aeab5 to your computer and use it in GitHub Desktop.
How to pass params to tsc from the text file

In console

$ tsc @cli-ts-params.txt ./path-to-file

OR

$ npx tsc @cli-ts-params.txt ./path-to-file

in cli-ts-params.txt

--types cypress
--types testing-library__cypress
--types jest
--skipLibCheck true
--allowSyntheticDefaultImports true
--esModuleInterop true
--target es5
--strict true
--outDir ./integration/compiled

Any params from outside of ot compilerOptions aren't supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment