Skip to content

Commit

Permalink
chore: force set blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonoh committed Nov 8, 2020
1 parent 7a0620a commit be26497
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { sep } from 'path';
import ora from 'ora';
import { table } from 'table';
import yargs from 'yargs/yargs';
import setBlocking from 'set-blocking';
// import setBlocking from 'set-blocking';

import { ui } from './lib/ui';
import {
Expand Down Expand Up @@ -31,7 +31,9 @@ import {
regionNames,
} from './module';

setBlocking(true);
// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/no-explicit-any
(process.stdout as any)._handle.setBlocking(true);
// setBlocking(true);

export const main = (argvInput?: string[]): Promise<void> =>
new Promise((res, rej): void => {
Expand Down

0 comments on commit be26497

Please sign in to comment.