Skip to content

Commit

Permalink
fix: lux console fails when running on an npm linked version of the m…
Browse files Browse the repository at this point in the history
…aster branch (#349)
  • Loading branch information
zacharygolba authored Aug 29, 2016
1 parent 5d492f5 commit 0e05e3d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions bin/lux
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function exec(cmd, ...args) {
handler = require(path.join(__dirname, '..', 'dist', cmd))[cmd];
}

return handler.apply(null, args);
return Reflect.apply(handler, null, args);
}

function exit(code) {
Expand Down Expand Up @@ -130,7 +130,6 @@ cli
.option('-e, --environment [env]', '(Default: development)')
.option('-w, --use-weak', 'Use weak mode')
.action(({ environment, useWeak }) => {
setEnvVar('PORT', port, 4000);
setEnvVar('NODE_ENV', environment, 'development');
process.env.LUX_CONSOLE = true;

Expand Down Expand Up @@ -248,11 +247,8 @@ cli
});

cli
.on('*', (cmd) => {
commandNotFound(cmd)
});

cli.parse(process.argv);
.on('*', commandNotFound)
.parse(process.argv);

if (!cli.args.length) {
cli.help();
Expand Down

0 comments on commit 0e05e3d

Please sign in to comment.