Skip to content

Commit 54b0960

Browse files
committed
fix(react-email): email-dev not exiting with error code when cli does
1 parent 3c4ea0a commit 54b0960

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react-email/dev/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ const tsx = child_process.spawn(tsxPath, [root, ...process.argv.slice(2)], {
1515
stdio: 'inherit',
1616
});
1717

18+
tsx.on('close', (code) => {
19+
process.exit(code);
20+
});
21+
1822
process.on('uncaughtExceptionMonitor', () => {
1923
tsx.kill();
2024
});

0 commit comments

Comments
 (0)