Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 12f274f

Browse files
authored
Fix dev command when running with npm - fix #119 (#170)
Fix dev command when running with npm - fix #119
2 parents afcb739 + 13cb5a0 commit 12f274f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/detect-server.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ module.exports.serverSettings = async devConfig => {
110110
settings.command || null,
111111
tellUser("command")
112112
); // if settings.command is empty, its bc no settings matched
113+
let devConfigArgs = devConfig.command.split(/\s/).slice(1);
114+
if (devConfigArgs[0] === "run") devConfigArgs = devConfigArgs.slice(1);
113115
settings.args = assignLoudly(
114-
devConfig.command.split(/\s/).slice(1),
116+
devConfigArgs,
115117
settings.command || null,
116118
tellUser("command")
117119
); // if settings.command is empty, its bc no settings matched

0 commit comments

Comments
 (0)