2

I am using tsc.exe manually, is there a way for me to basically pass it a load of Typescript files under a root namespace and just compile it to a single namespace encapsulated js file?

I am thinking like how you have a .net dll which contains the root namespace and all children.

1 Answer 1

2

I managed to find some links after posting this:

TypeScript compiling as a single JS file http://www.codebelt.com/typescript/typescript-compiler-commands/

Both of which helpped me, the actual answer is:

tsc.exe --out some_file.js some_ts_file.ts some_other_ts_file.ts
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.