Skip to content

Commit

Permalink
[BUGFIX release] Remove 'v' prefix from DS.VERSION
Browse files Browse the repository at this point in the history
The change of version number format may
break version checking from other libs.

(cherry picked from commit 5625cbd)
  • Loading branch information
tricknotes authored and bmac committed Jan 21, 2016
1 parent 44d26be commit fd157f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/calculate-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function() {
if (existsSync(gitPath)) {
var info = gitRepoInfo(gitPath);
if (info.tag) {
return info.tag;
return info.tag.replace(/^v/, '');
}

return packageVersion + '+' + info.sha.slice(0, 10);
Expand Down
2 changes: 1 addition & 1 deletion lib/version-replace.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var calculateVersion = require('./calculate-version');
var version = calculateVersion().replace(/^v/, '');
var version = calculateVersion();
var replace = require('broccoli-string-replace');

module.exports = function configFiles(tree) {
Expand Down

0 comments on commit fd157f8

Please sign in to comment.