• 0
  • 新人请关照

fork别人的包,修改后想发布到 npmjs.com ,要怎么修改 package.json 才最合适?

我在 github fork 了 markedjs/marked ,做了一些修改,然后我想把这个修改过的包发布到 npmjs.com ,包名修改为 @我的名字/marked ,但是作者啊、 github repo 啊、主页啊这些地方要怎么填写才合适呢?既能保留原作者的信息,又能把我的信息像姓名、主页、邮箱、 github repo添加上去?

marked 的 package.json :

{
  "name": "marked",
  "description": "A markdown parser built for speed",
  "author": "Christopher Jeffrey",
  "version": "0.8.2",
  "main": "./src/marked.js",
  "bin": "./bin/marked",
  "man": "./man/marked.1",
  "files": [
    "bin/",
    "lib/",
    "src/",
    "man/",
    "marked.min.js"
  ],
  "repository": "git://github.com/markedjs/marked.git",
  "homepage": "https://marked.js.org",
  "bugs": {
    "url": "http://github.com/markedjs/marked/issues"
  },
  "license": "MIT",
  ......
}
阅读 132
评论
    0 个回答
    撰写回答

    登录后参与交流、获取后续更新提醒