Closed
Description
tsc: 2.2.0+
I try to preserve comments in typings files but remove comments in the transpiled JS file. Couldn't find a combination to do it.
One way is introducing a flag for it, but it would be overkill.
Another way is to emit typings files when --declaration=true
and --noEmit=true
, the draw back is I have to run tsc
twice with different config to generate the comment removed JS files and comment retained typings files.