Browse Source

#2838 fixes missing variable grep, formatting

pull/2850/head
jlukic 9 years ago
parent
commit
d020528fed
1 changed files with 6 additions and 6 deletions
  1. 12
      tasks/config/project/release.js

12
tasks/config/project/release.js

@ -5,7 +5,7 @@
var
requireDotFile = require('require-dot-file'),
config,
packageJson,
packageJSON,
version
;
@ -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'
};
}
@ -56,6 +56,6 @@ module.exports = {
+ ' *' + '\n'
+ ' */' + '\n',
version : packageJson.version
version : packageJSON.version
};
Loading…
Cancel
Save