Skip to content

Commit 603c70f

Browse files
committed
build: Typedoc build script return code
1 parent 261069a commit 603c70f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/build-typedoc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import path from 'node:path';
22
import { create } from 'browser-sync';
33
import watch from 'node-watch';
44
import { Application } from 'typedoc';
5+
import report from './report.mjs';
56

67
const browserSync = create();
78
const ROOT = path.join.bind(null, path.resolve('./'));
@@ -137,4 +138,9 @@ async function main() {
137138
}
138139
}
139140

140-
main().catch(console.error);
141+
try {
142+
await main();
143+
} catch (e) {
144+
report.error(e);
145+
process.exit(1);
146+
}

0 commit comments

Comments
 (0)