Skip to content

Commit

Permalink
fix: Crash when called with no inputs. yargs now variadic positional …
Browse files Browse the repository at this point in the history
…arguments undefined instead of []
  • Loading branch information
tmcw committed Jul 10, 2019
1 parent 778d84c commit 821a15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports.handler = function build(argv) {
let watcher;
argv._handled = true;

if (!argv.input.length) {
if (!(argv.input && argv.input.length)) {
try {
argv.input = [
JSON.parse(fs.readFileSync(path.resolve('package.json'), 'utf8'))
Expand Down

0 comments on commit 821a15e

Please sign in to comment.