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.
  • Loading branch information
tricknotes committed Jan 20, 2016
1 parent 73e4f3f commit 5625cbd
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 5625cbd

Please sign in to comment.