diff --git a/extensions/npm/src/tasks.ts b/extensions/npm/src/tasks.ts index 63cd80a140943..9022bdf53e74d 100644 --- a/extensions/npm/src/tasks.ts +++ b/extensions/npm/src/tasks.ts @@ -58,7 +58,7 @@ function getPrePostScripts(scripts: any): Set { const script = keys[i]; const prepost = ['pre' + script, 'post' + script]; prepost.forEach(each => { - if (scripts[each]) { + if (scripts[each] !== undefined) { prePostScripts.add(each); } });