Skip to content

addDummyModuleNodes removes JSDoc fileoverview comment #78

Description

@pauloteixeirajr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions