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

后端 未结 20 1385
悲哀的现实
悲哀的现实 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 07:42

    I do something that's some of you might like:

    This // inside of the name means it's a comment for me:

      "//":"Main and typings are used till ES5",
      "//main": "build/index",
      "//typings": "build/index",
    

提交回复
热议问题