From f16b67f8b6cd3eaaf24c26d4e7c4d490c0937ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BA=94=E9=BE=99?= Date: Fri, 15 Jul 2022 00:42:14 +0800 Subject: [PATCH] fix: can not find module 'cli-ux' (#403) Co-authored-by: Mike Donnalley --- flush.js | 7 +------ src/index.ts | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/flush.js b/flush.js index c0acff9b1..404a25a62 100644 --- a/flush.js +++ b/flush.js @@ -1,6 +1 @@ -module.exports = async () => { - try { - const {ux} = require('cli-ux') - await ux.flush() - } catch (error) { } -} +module.exports = require('./lib').flush diff --git a/src/index.ts b/src/index.ts index 05e1f8859..812189989 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,7 +15,7 @@ import {settings, Settings} from './settings' import {HelpSection, HelpSectionRenderer, HelpSectionKeyValueTable} from './help/formatter' import * as cliUx from './cli-ux' -const flush = require('../flush') +const flush = cliUx.ux.flush export { Command,