修改后的.bower.json文件未更新 [英] Modified .bower.json file not updating
本文介绍了修改后的.bower.json文件未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我用bower下载包时,它会在包文件夹中创建一个 .bower.json
文件。当我修改忽略列表并运行 bower update
时,它不会更新。
When I download a package with bower it creates a .bower.json
file in the package folder. When I modify the ignore list and run bower update
it does not update however.
{
"name": "less",
"version": "1.6.3",
"main": "./dist/less-1.6.3.js",
"ignore": [
"**/.*",
"test",
"*.md",
"LICENSE",
"Gruntfile.js",
"package.json",
"bower.json"
],
"homepage": "https://github.com/less/less",
"_release": "1.6.3",
"_resolution": {
"type": "version",
"tag": "v1.6.3",
"commit": "0cfd753e3750ff1ee4c54e09d10ea1a633b0ce89"
},
"_source": "git://github.com/less/less.git",
"_target": "1.6.3",
"_originalSource": "less"
}
更改为
{
"name": "less",
"version": "1.6.3",
"main": "./dist/less-1.6.3.js",
"ignore": [
"LICENSE",
"Gruntfile.js",
"package.json",
"bower.json"
],
"homepage": "https://github.com/less/less",
"_release": "1.6.3",
"_resolution": {
"type": "version",
"tag": "v1.6.3",
"commit": "0cfd753e3750ff1ee4c54e09d10ea1a633b0ce89"
},
"_source": "git://github.com/less/less.git",
"_target": "1.6.3",
"_originalSource": "less"
}
有没有办法在我的包中提供这些文件?
Is there any way to get these files in my package?
推荐答案
有一个原因是它带有一个前缀并隐藏起来。你不应该碰它。它适用于Bower内部。如果您需要更新忽略列表,您应该向相关软件包的bower.json提交拉取请求。
There's a reason it's prefixed with a dot and hidden. You're not supposed to touch it. It's for use internally in Bower. If you need to update the ignore list you should submit a pull request to the bower.json of the package in question.
这篇关于修改后的.bower.json文件未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文