We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f513d73 commit 1a57d3fCopy full SHA for 1a57d3f
packages/htmldocs/src/cli/index.ts
@@ -18,6 +18,13 @@ const noop = () => {};
18
// Silence Node.js deprecation warnings
19
process.removeAllListeners('warning');
20
21
+// Monkey patch logger.error to exit with code 1
22
+const originalError = logger.error;
23
+logger.error = (...args: any[]) => {
24
+ originalError.apply(logger, args);
25
+ process.exit(1);
26
+};
27
+
28
// these environment variables are used on the next app
29
// this is the most reliable way of communicating these paths through
30
process.env = {
0 commit comments