Skip to content

Commit

Permalink
fix: fix incorrect spread
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Mar 25, 2020
1 parent 439fe69 commit e10936c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/commands/run/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = yargs => {
const config = require(webinyConfig);
const command = camelCase(argv.command);
if (config.commands && typeof config.commands[command] === "function") {
return await config.commands[command]({ ...argv.options }, context);
return await config.commands[command]({ ...argv }, context);
}

throw Error(`Command "${command}" is not defined in "webiny.config.js"!`);
Expand Down

0 comments on commit e10936c

Please sign in to comment.