Skip to content

Commit

Permalink
simplify version lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Dec 21, 2017
1 parent 1c28ec3 commit 2c68e37
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ module.exports = function broccoliCLI(args) {
const program = require('commander');
let actionPromise;

program
.version(JSON.parse(fs.readFileSync(__dirname + '/../package.json', 'utf8')).version)
.usage('[options] <command> [<args ...>]');
program.version(require('../package.json').version).usage('[options] <command> [<args ...>]');

program
.command('serve')
Expand Down

0 comments on commit 2c68e37

Please sign in to comment.