Skip to content

Commit e4896a7

Browse files
thomasballingerConvex, Inc.
authored and
Convex, Inc.
committed
Fix ctrl-c in the monorepo (#27329)
Stop hiding the cursor while the CLI spinner is running since this was causing issues with ctrl-c handing while running the source files directly with `tsx`. GitOrigin-RevId: 46c4cba9c751336d0c73ab805190c6a9680b0c76
1 parent ee0acb5 commit e4896a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

npm-packages/convex/src/bundler/context.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ export function showSpinner(ctx: Context, message: string) {
9393
// we can't pipe through `logMessage` et al gets printed
9494
text: message + "\n",
9595
stream: process.stderr,
96+
// hideCursor: true doesn't work with `tsx`.
97+
// see https://github.com/tapjs/signal-exit/issues/49#issuecomment-1459408082
98+
// See CX-6822 for an issue to bring back cursor hiding, probably by upgrading libraries.
99+
hideCursor: false,
96100
}).start();
97101
}
98102

0 commit comments

Comments
 (0)