From 889a5b38d547dc83e509a343f27ca4b9896f2fb0 Mon Sep 17 00:00:00 2001 From: Alexander Andersson Date: Thu, 4 Oct 2018 20:10:42 +0200 Subject: [PATCH] Pass any extra arguments to run command --- src/commands/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/run.js b/src/commands/run.js index 886b7eb..cc65859 100644 --- a/src/commands/run.js +++ b/src/commands/run.js @@ -17,7 +17,7 @@ module.exports = function run(opts) { commandExists('rsync', (error, rsyncExists) => { if (!error && rsyncExists) { startServer(); - spawn('npm', ['run', opts.npmScript, '--', '--config', cliConfigPath], (code) => { + spawn('npm', ['run', opts.npmScript, '--', '--config', cliConfigPath].concat(process.argv.slice(4)), (code) => { process.exit(code); });