mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Fix bower init targeting ~commit instead of *, closes #385.
This commit is contained in:
@@ -40,7 +40,7 @@ Init.prototype.getDependenciesJSON = function () {
|
||||
|
||||
pkg.on('loadJSON', function () {
|
||||
// TODO: use fetch endpoint here
|
||||
json[pkg.name] = '~' + pkg.version;
|
||||
json[pkg.name] = pkg.commit ? '*' : '~' + pkg.version;
|
||||
remaining -= 1;
|
||||
if (remaining === 0) {
|
||||
this.manager.emit('loadDependencies', json);
|
||||
|
||||
Reference in New Issue
Block a user