google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.59k stars 428 forks source link

Push removing comment even editor addon scope comments #931

Open pcdeshmukh opened 2 years ago

pcdeshmukh commented 2 years ago

It's a problem of ts2gas update. Until CLASP v2.1, ts2gas 1.6.x version was used but in CLASPv2.2 ts2gas leaps to 3.x which might have introduced this behaviour

Expected Behavior

push should not remove scope & copyright comments e.g

/*
 * @OnlyCurrentDoc
 */

or /* Copyright (c) 2022-present abc */

Actual Behavior

It removes above comments

Steps to Reproduce the Problem

  1. Add above comment in code.ts
  2. use any CLASPv 2.2+ version to push
  3. Observe code.gs

Specifications