Skip to content

Commit

Permalink
chore(repo): bump cliui
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Sep 28, 2023
1 parent 8d767ed commit 81db38c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 67 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
"@zkochan/js-yaml": "0.0.6",
"axios": "1.0.0",
"classnames": "^2.3.1",
"cliui": "^7.0.2",
"cliui": "^8.0.1",
"core-js": "^3.6.5",
"enquirer": "~2.3.6",
"fast-glob": "3.2.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/nx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"chalk": "^4.1.0",
"cli-cursor": "3.1.0",
"cli-spinners": "2.6.1",
"cliui": "^7.0.2",
"cliui": "^8.0.1",
"dotenv": "~16.3.1",
"dotenv-expand": "~10.0.0",
"enquirer": "~2.3.6",
Expand Down
12 changes: 6 additions & 6 deletions packages/nx/src/utils/print-help.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as chalk from 'chalk';
import * as stringWidth from 'string-width';
// cliui is the CLI layout engine developed by, and used within, yargs
import * as cliui from 'cliui';
import cliui from 'cliui';
import { logger } from './logger';
import { output } from './output';
import { Schema } from './params';
Expand Down Expand Up @@ -91,7 +91,7 @@ function generateGeneratorOverviewOutput({
description: string;
aliases: string[];
}): string {
const ui = cliui();
const ui = cliui(null);
const overviewItemsLabelWidth =
// Chars in labels "From" and "Name"
4 +
Expand Down Expand Up @@ -156,7 +156,7 @@ function generateExecutorOverviewOutput({
name: string;
description: string;
}): string {
const ui = cliui();
const ui = cliui(null);
const overviewItemsLeftPadding = 2;
const overviewItemsLabelWidth = overviewItemsLeftPadding + 'Executor:'.length;

Expand Down Expand Up @@ -204,7 +204,7 @@ const formatOptionType = (optionConfig: Schema['properties'][0]) => {
};

function generateOptionsOutput(schema: Schema): string {
const ui = cliui();
const ui = cliui(null);
const flagAndAliasLeftPadding = 4;
const flagAndAliasRightPadding = 4;

Expand Down Expand Up @@ -281,7 +281,7 @@ function generateOptionsOutput(schema: Schema): string {
{
text: renderedTypesAndDefault,
padding: [0, 0, 0, 0],
align: 'right',
align: 'right' as const,
},
];

Expand All @@ -295,7 +295,7 @@ function generateExamplesOutput(schema: Schema): string {
if (!schema.examples || schema.examples.length === 0) {
return '';
}
const ui = cliui();
const ui = cliui(null);
const xPadding = 4;

ui.div({
Expand Down
68 changes: 9 additions & 59 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 81db38c

Please sign in to comment.