Skip to content

Commit 5afe766

Browse files
authoredOct 9, 2021
Fail when unable to build a native package (#6962)
1 parent 971ed24 commit 5afe766

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎scripts/build-native.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ async function build() {
3434
shell: true,
3535
});
3636

37-
yarn.on('error', reject);
38-
yarn.on('close', resolve);
39-
});
37+
yarn.on('close', code => (code === 0 ? resolve() : reject()));
38+
}).catch(() => process.exit(1));
4039
}
4140
}
4241

0 commit comments

Comments
 (0)
Please sign in to comment.