5

Just for clarification, when using the angular cli and typescript, when I run the command: ng build. Does that compile all the ts files to js? I noticed the "compileOnSave" property in the tsconfig.json is set to false.

There shouldn't be anything I have to do to compile the typescript files, correct? When exactly are they compiled?

**I am not sure why my question got a down vote. It is a legitimate question and the Angular CLI documentation does not explicit answer it.

**UPDATE: Upon further review, I noticed that I was getting some TS Lint errors on the first project I was working on, which is when I noticed it wasn't compiling. I believe the fact that it was not compiling may be related to that. Upon initializing a new project via the CLI, I can see that the TypeScript files do compile when the ng build command is run.

1 Answer 1

2

Solved - see question Update. If you are noticing that the .ts files are not compiling, check the output pane and make sure there are no errors being output (for instance, with ts lint)

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.