UNPKG

@selemondev/create-react-next

Version:

The Next Generation React Scaffolding Tool ✨

16 lines (14 loc) 421 B
import type { InitialReturnValue } from "prompts" export const onPromptState = (state: { value: InitialReturnValue aborted: boolean exited: boolean }) => { if (state.aborted) { // If we don't re-enable the terminal cursor before exiting // the program, the cursor will remain hidden process.stdout.write('\x1B[?25h') process.stdout.write('\n') process.exit(1) } }