Skip to content

Commit

Permalink
chore: set blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonoh committed Nov 8, 2020
1 parent 481dbb2 commit b2bf22e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ import {
regionNames,
} from './module';

// https://github.com/yargs/yargs/issues/1519
// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/no-explicit-any
(process.stdout as any)._handle.setBlocking(true);

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

0 comments on commit b2bf22e

Please sign in to comment.