Skip to content

Commit b8b8afd

Browse files
vlasyzkat
authored andcommitted
run-script: Check run script existence with undefined (#139)
PR-URL: #139 Credit: @vlasy Reviewed-By: @zkat
1 parent 489c221 commit b8b8afd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/run-script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function run (pkg, wd, cmd, args, cb) {
136136
'prestart', 'start', 'poststart'
137137
]
138138
} else {
139-
if (!pkg.scripts[cmd]) {
139+
if (pkg.scripts[cmd] == null) {
140140
if (cmd === 'test') {
141141
pkg.scripts.test = 'echo \'Error: no test specified\''
142142
} else if (cmd === 'env') {

0 commit comments

Comments
 (0)