所以我已经发布了一个npm软件包,但是当我安装它时,它没有从我的github存储库中提取任何代码。相反,它只有node_modules
{
"name": "asdf",
"version": "1.0.3",
"description": "asdf",
"main": "index.js",
"dependencies": {
"got": "^9.6.0"
},
"devDependencies": {},
"scripts": {
"start": "node index.js"
},
"bin" : { "asdf" : "index.js" },
"files": [
"index.js"
],
"repository": {
"type": "git",
"url": "git+https://github.com/asdf/asdf.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/asdf/asdf/issues"
},
"homepage": "https://asdf"
}
我期望的是从公共的git repo中提取index.js。