我有一个\0
文件的项目,如下所示:
package.json
" my-package" {
"dependencies": {
"my-package": "git+https://shoreline:password@bitbucket.org/shorelineltd/my-package.git"
}
}
:
package.json
{
"name": "my-package",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "webpack --progress --colors",
"watch": "webpack --progress --colors --watch",
"start": "webpack-dev-server --env.dev --open --watch --progress --colors"
},
"author": "shoreline@anonymised-domain.com",
"license": "ISC",
"homepage": "https://bitbucket.org/shorelineltd/my-package#readme",
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"babel-runtime": "^6.26.0",
"css-loader": "^0.28.7",
"file-loader": "^0.11.2",
"html-loader": "^0.5.1",
"html-webpack-plugin": "^2.30.1",
"jquery": "^3.2.1",
"node-sass": "^4.5.3",
"sass-loader": "^6.0.6",
"style-loader": "^0.18.2",
"url-loader": "^0.5.9",
"webpack": "^3.5.5",
"webpack-dev-server": "^2.9.5"
},
"dependencies": {
"angular": "1.4.7",
"angular-sanitize": "1.4.7",
"angular-schema-form": "0.8.13",
"angular-schema-form-bootstrap": "0.2.0",
"angular-schema-form-dynamic-select": "0.13.1",
"angular-toastr": "2.1.1",
"bootstrap": "3.3.7"
}
}
版本为4.2.0。
当我运行npm
时,我的包源代码下载成功。
如何让我的npm install
包含" my-package"中提供的依赖项?
我是否应该在" my-package"?
中包含一个包