Skip to content

Commit 1f56dbe

Browse files
committed
Bun.build throws error now
1 parent 5fc0b10 commit 1f56dbe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/install/bun/bun.config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ const config = {
88
};
99

1010
const build = async (config) => {
11-
const result = await Bun.build(config);
11+
let result;
12+
13+
try {
14+
result = await Bun.build(config);
15+
} catch (error) {
16+
result = { success: false, logs: error.errors };
17+
}
1218

1319
if (!result.success) {
1420
if (process.argv.includes('--watch')) {

0 commit comments

Comments
 (0)