How do I add comments to package.json for npm install?

后端 未结 20 1380
悲哀的现实
悲哀的现实 2020-12-07 07:30

I\'ve got a simple package.json file and I want to add a comment. Is there a way to do this, or are there any hacks to make this work?



        
20条回答
  •  青春惊慌失措
    2020-12-07 08:02

    I like this:

      "scripts": {
        "⏬⏬⏬ Jenkins Build - in this order ⏬⏬⏬                                                                                                  ": "",
        "purge": "lerna run something",
        "clean:test": "lerna exec --ignore nanana"
    }
    

    There are extra spaces in the command name, so in Visual Studio Code's NPM Scripts plugin you have a better look.

提交回复
热议问题