Skip to content

Commit 8fd1e37

Browse files
authored
fix delay parameter
1 parent 9574a30 commit 8fd1e37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

watch-package.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function startScript(script, pkg, processes) {
102102
quiet = pkg.watch[script].quiet
103103
inherit = pkg.watch[script].inherit
104104
legacyWatch = pkg.watch[script].legacyWatch
105-
delay = pkg.watch[script].delay + 'ms'
105+
delay = pkg.watch[script].delay
106106
} else {
107107
patterns = pkg.watch[script]
108108
}
@@ -125,7 +125,7 @@ function startScript(script, pkg, processes) {
125125
args = args.concat(patterns)
126126
if (ignores) { args = args.concat(ignores) }
127127
if (legacyWatch) { args = args.concat(['--legacy-watch']) }
128-
if (delay) { args = args.concat(['--delay', delay]) }
128+
if (delay) { args = args.concat(['--delay', delay + 'ms']) }
129129
args = args.concat(['--exec', exec])
130130
var proc = processes[script] = spawn(nodemon, args, {
131131
env: process.env,

0 commit comments

Comments
 (0)