Skip to content

Commit 8b9b0d3

Browse files
committed
Fix for microsoft#50792: empty pre post scripts not rendered properly
1 parent c717348 commit 8b9b0d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/npm/src/tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function getPrePostScripts(scripts: any): Set<string> {
5858
const script = keys[i];
5959
const prepost = ['pre' + script, 'post' + script];
6060
prepost.forEach(each => {
61-
if (scripts[each]) {
61+
if (scripts[each] !== undefined) {
6262
prePostScripts.add(each);
6363
}
6464
});

0 commit comments

Comments
 (0)