Skip to content

Commit

Permalink
fix: import the CJS package with ESM-interop
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Dec 28, 2021
1 parent a932cb1 commit 69595d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cli/prompt.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/* istanbul ignore file */

import { prompt } from 'enquirer';
import enquirer from 'enquirer';
import { Action, DisplayMode } from '../types.js';

const { prompt } = enquirer;

// When combined with worker, for some reason the enquirer grabs the SIGINT and the process continues to survive.
// Therefore, the process is explicitly terminated.
const onCancel = () => process.exit();
Expand Down

0 comments on commit 69595d7

Please sign in to comment.