i using typescript node npm module compile .ts files in project.
the simple case
as documentation (that condensed in npm page link reported above leads to), when compiling simple file, need to:
node node_modules/typescript/bin/tsc.js main.ts the not simple case
however, need pass parameters compiler, this:
node node_modules/typescript/bin/tsc.js main.ts --module commonjs --out out/main.js but looks --module commonjs --out out/main.js part not considered , gets lost.
how pass parameters tsc.js invoked through 'node'? thanks
it looks --module commonjs --out out/main.js part not considered , gets lost.
not true. works fine. thing experiencing:
do not use --module , --out together
basically don't use --out. use case (to redirect output different directory) use --outdir.
personally, dislike out beginners : https://github.com/typestrong/atom-typescript/blob/master/docs/out.md
Comments
Post a Comment