angulartypescripttsconfigcompiler-optionsangular-compiler

What is the tsconfig equivalent for the cli parameter --generateTrace?


If you run tsc manually and use the param:

tsc --generateTrace traceDir

you can create a new traceDir directory with paired trace and types files. A recent analysis package from Microsoft typescript-analyze-trace can analyse those files.

Questions:

I wanted to configure generateTrace within tsconfig.json and couldn't find the equivalent property.

Is there a similar configuration option also in an angular app? I guess I can use the same property within angularCompilerOptions (if I knew what it is called)?


Solution

  • I'm sure you've already seen this

    https://www.typescriptlang.org/docs/handbook/compiler-options.html

    generateTrace is a flag, not an option so it wouldn't have a parallel in the tsconfig file.

    What you could try doing is adding this command to one of your script shorthands, ie npm buildWithTrace : npm build projectName && tsc --generateTrace

    But otherwise, this doesn't seem to be possible yet.