For those who have TypeScript installed as a local package (and possibly as a dev dependency) via:
$ npm install typescript --save-dev
...and who have added tsc script to package.json:
"scripts": {
...
"tsc": "tsc"
},
You can call tsc --init
via npm
:
$ npm run tsc -- --init