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

Commit 13cb5a0

Browse files
authored
Update index.js
1 parent 3760e23 commit 13cb5a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/dev/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ function startDevServer(settings, log) {
155155
return;
156156
}
157157
log(`${NETLIFYDEVLOG} Starting Netlify Dev with ${settings.type}`);
158-
const ps = execa(settings.command, settings.args, {
158+
const args =
159+
settings.command === "npm" ? ["run", ...settings.args] : settings.args;
160+
const ps = execa(settings.command, args, {
159161
env: settings.env,
160162
stdio: "inherit"
161163
});

0 commit comments

Comments
 (0)