Skip to content

Commit

Permalink
fix(update_changelog): Add core changelog, unless we're in uirouter/core
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Aug 12, 2017
1 parent c1ab06c commit af67499
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions update_changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
require('./util').packageDir();
require('shelljs/global');

let path = require('path');
let _exec = require('./util')._exec;
const path = require('path');
const fs = require('path');
const pkg = JSON.parse(fs.readFileSync('package.json'));
const _exec = require('./util')._exec;

echo('Updating CHANGELOG...');
cp('CHANGELOG.md', 'CHANGELOG.bak');
_exec('./node_modules/.bin/show_changelog >> CHANGELOG.new');
if (pkg.name !== '@uirouter/core') {
_exec('./node_modules/.bin/show_core_changelog >> CHANGELOG.new');
}
_exec('cat CHANGELOG.new CHANGELOG.bak > CHANGELOG.md');
rm('CHANGELOG.bak', 'CHANGELOG.new');

0 comments on commit af67499

Please sign in to comment.