From 13d93f4e10f1f5e0fd7409eb258692876ed0f1b7 Mon Sep 17 00:00:00 2001 From: Brian Hann Date: Tue, 28 Jul 2015 11:13:36 -0500 Subject: [PATCH] fix(Build): Allow Angular 1.3.x upper constraint Had incorrect semver syntax for Bower ('>=1.2.16 <=1.3.x') which worked for semver but not BOWER'S semver, which is different. This updated syntax is correct. Thanks to @jgilchrist for walking me through it. Closes #4064 --- lib/grunt/plugins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/grunt/plugins.js b/lib/grunt/plugins.js index 2da27ea876..6c8dd020da 100644 --- a/lib/grunt/plugins.js +++ b/lib/grunt/plugins.js @@ -280,7 +280,7 @@ module.exports = function(grunt) { // Create the bower.json file grunt.registerTask('update-bower-json', function () { - var currentTag = semver.clean( util.getCurrentTag() ); + var currentTag = semver.clean( util.getVersion() ); var taggedReleaseDir = path.join(path.resolve(process.cwd()), 'dist', 'release', currentTag); @@ -308,7 +308,7 @@ module.exports = function(grunt) { 'main': releaseFiles, 'ignore': [], 'dependencies': { - 'angular': '>=1.2.16 <=1.3.16' // Note: bower will install 1.2.28 when <=1.3.x is specified... + 'angular': '>=1.2.16 1.3.x' }, 'repository': pkg.repository, 'homepage': 'http://ui-grid.info',