grant / ts2gas

A function that transpiles TypeScript to Google Apps Script.
http://npmjs.com/ts2gas
MIT License
88 stars 11 forks source link

addDummyModuleNodes removes JSDoc fileoverview comment #78

Open pauloteixeirajr opened 1 year ago

pauloteixeirajr commented 1 year ago

I'm using @google/clasp and I've noticed that the @fileoverview comment gets removed by the addDummyModuleNodes function whenever there are imports in the file.

Keeping this comment is important to alert other developers to not edit the code in the Online Editor where the code is emitted but instead in the repository linked in the comment.

With a bit of experimenting, I noticed that addDummyModuleNodes removes the comment when adding the dummy exports/module variables.

Steps to reproduce: