Joel
Joel

Reputation: 2404

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?

Upvotes: 3

Views: 1502

Answers (1)

basarat
basarat

Reputation: 276255

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

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

Upvotes: 1

Related Questions