I am using TypeScript Node NPM module to compile my .ts files in my project.
The simple case
As for documentation (that is condensed in the NPM page the link I reported above leads to), when compiling a simple file, I just need to:
node node_modules/typescript/bin/tsc.js main.ts
The not so simple case
However, I need to pass parameters to the compiler, so I do this:
node node_modules/typescript/bin/tsc.js main.ts --module commonjs --out out/main.js
But it looks like the --module commonjs --out out/main.js part is not considered and gets lost.
How to successfully pass parameters to tsc.js invoked through 'node'? Thanks