grant/ts2gas

addDummyModuleNodes removes JSDoc fileoverview comment

pauloteixeirajr opened this issue · 0 comments

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:

  • Create an AppsScript project
  • Clone it to your local machine
  • Convert files to typescript
  • Create dummy classes in different files
  • Add import statement to top of file
  • Add a JSDoc document above the imports
  • Run clasp push