Skip to content

Commit

Permalink
#2838 fixes missing variable grep, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Aug 13, 2015
1 parent 5820725 commit d020528
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/config/project/release.js
Expand Up @@ -5,7 +5,7 @@
var
requireDotFile = require('require-dot-file'),
config,
packageJson,
packageJSON,
version
;

Expand All @@ -16,20 +16,20 @@ var

try {

config = requireDotFile('semantic.json');
packageJson = require('../../../package.json');
config = requireDotFile('semantic.json');
packageJSON = require('../../../package.json');

// looks for version in config or package.json (whichever is available)
version = (config && config.version !== undefined)
? config.version
: package.version
: packageJSON.version
;

}

catch(error) {
// generate fake package
packageJson = {
packageJSON = {
version: 'x.x'
};
}
Expand All @@ -56,6 +56,6 @@ module.exports = {
+ ' *' + '\n'
+ ' */' + '\n',

version : packageJson.version
version : packageJSON.version

};

0 comments on commit d020528

Please sign in to comment.