Search code examples
typescripttsc

Can I add additional comments in generated javascript with typescript?


Working on an open-source project, I'm trying to find a way to have comments in javascript header such as "AUTO-GENERATED FILE, DO NOT MODIFY etc." ; but of course, I don't want to put those comments in typescript files, only in JS. Is there a way to do it? Maybe via some kind of tsc post-compile scripts, does it exist?


Solution

  • Maybe via some kind of tsc post-compile scripts, does it exist

    You can use https://www.npmjs.org/package/grunt-text-replace