@nx/workspace
Advanced tools
@@ -1,2 +0,2 @@ | ||
| import * as chalk from 'chalk'; | ||
| import chalk from 'chalk'; | ||
| export interface CLIErrorMessageConfig { | ||
@@ -3,0 +3,0 @@ title: string; |
+21
-21
@@ -5,3 +5,3 @@ "use strict"; | ||
| const tslib_1 = require("tslib"); | ||
| const chalk = tslib_1.__importStar(require("chalk")); | ||
| const chalk_1 = tslib_1.__importDefault(require("chalk")); | ||
| /** | ||
@@ -11,7 +11,7 @@ * Automatically disable styling applied by chalk if CI=true | ||
| if (process.env.CI === 'true') { | ||
| chalk.level = 0; | ||
| chalk_1.default.level = 0; | ||
| } | ||
| class CLIOutput { | ||
| constructor() { | ||
| this.NX_PREFIX = chalk.reset.inverse.bold.cyan(' NX '); | ||
| this.NX_PREFIX = chalk_1.default.reset.inverse.bold.cyan(' NX '); | ||
| /** | ||
@@ -28,6 +28,6 @@ * Longer dash character which forms more of a continuous line when place side to side | ||
| this.colors = { | ||
| gray: chalk.gray, | ||
| gray: chalk_1.default.gray, | ||
| }; | ||
| this.bold = chalk.bold; | ||
| this.underline = chalk.underline; | ||
| this.bold = chalk_1.default.bold; | ||
| this.underline = chalk_1.default.underline; | ||
| } | ||
@@ -58,6 +58,6 @@ writeToStdOut(str) { | ||
| addVerticalSeparator() { | ||
| this.writeToStdOut(`\n${chalk.gray(this.VERTICAL_SEPARATOR)}\n\n`); | ||
| this.writeToStdOut(`\n${chalk_1.default.gray(this.VERTICAL_SEPARATOR)}\n\n`); | ||
| } | ||
| addVerticalSeparatorWithoutNewLines() { | ||
| this.writeToStdOut(`${chalk.gray(this.VERTICAL_SEPARATOR)}\n`); | ||
| this.writeToStdOut(`${chalk_1.default.gray(this.VERTICAL_SEPARATOR)}\n`); | ||
| } | ||
@@ -67,4 +67,4 @@ error({ title, slug, bodyLines }) { | ||
| this.writeOutputTitle({ | ||
| label: chalk.reset.inverse.bold.red(' ERROR '), | ||
| title: chalk.bold.red(title), | ||
| label: chalk_1.default.reset.inverse.bold.red(' ERROR '), | ||
| title: chalk_1.default.bold.red(title), | ||
| }); | ||
@@ -77,3 +77,3 @@ this.writeOptionalOutputBody(bodyLines); | ||
| this.addNewline(); | ||
| this.writeToStdOut(`${chalk.grey(' Learn more about this error: ')}https://errors.nx.dev/${slug}\n`); | ||
| this.writeToStdOut(`${chalk_1.default.grey(' Learn more about this error: ')}https://errors.nx.dev/${slug}\n`); | ||
| } | ||
@@ -85,4 +85,4 @@ this.addNewline(); | ||
| this.writeOutputTitle({ | ||
| label: chalk.reset.inverse.bold.yellow(' WARNING '), | ||
| title: chalk.bold.yellow(title), | ||
| label: chalk_1.default.reset.inverse.bold.yellow(' WARNING '), | ||
| title: chalk_1.default.bold.yellow(title), | ||
| }); | ||
@@ -95,3 +95,3 @@ this.writeOptionalOutputBody(bodyLines); | ||
| this.addNewline(); | ||
| this.writeToStdOut(`${chalk.grey(' Learn more about this warning: ')}https://errors.nx.dev/${slug}\n`); | ||
| this.writeToStdOut(`${chalk_1.default.grey(' Learn more about this warning: ')}https://errors.nx.dev/${slug}\n`); | ||
| } | ||
@@ -103,4 +103,4 @@ this.addNewline(); | ||
| this.writeOutputTitle({ | ||
| label: chalk.reset.inverse.bold.keyword('orange')(' NOTE '), | ||
| title: chalk.bold.keyword('orange')(title), | ||
| label: chalk_1.default.reset.inverse.bold.keyword('orange')(' NOTE '), | ||
| title: chalk_1.default.bold.keyword('orange')(title), | ||
| }); | ||
@@ -113,4 +113,4 @@ this.writeOptionalOutputBody(bodyLines); | ||
| this.writeOutputTitle({ | ||
| label: chalk.reset.inverse.bold.green(' SUCCESS '), | ||
| title: chalk.bold.green(title), | ||
| label: chalk_1.default.reset.inverse.bold.green(' SUCCESS '), | ||
| title: chalk_1.default.bold.green(title), | ||
| }); | ||
@@ -129,5 +129,5 @@ this.writeOptionalOutputBody(bodyLines); | ||
| this.addNewline(); | ||
| this.writeToStdOut(chalk.bold(`> ${message} `)); | ||
| this.writeToStdOut(chalk_1.default.bold(`> ${message} `)); | ||
| if (isCached) { | ||
| this.writeToStdOut(chalk.bold.grey(`[retrieved from cache]`)); | ||
| this.writeToStdOut(chalk_1.default.bold.grey(`[retrieved from cache]`)); | ||
| } | ||
@@ -139,3 +139,3 @@ this.addNewline(); | ||
| this.writeOutputTitle({ | ||
| title: chalk.white(title), | ||
| title: chalk_1.default.white(title), | ||
| }); | ||
@@ -142,0 +142,0 @@ this.writeOptionalOutputBody(bodyLines); |
+4
-4
| { | ||
| "name": "@nx/workspace", | ||
| "version": "23.0.1", | ||
| "version": "23.0.2", | ||
| "private": false, | ||
@@ -88,7 +88,7 @@ "type": "commonjs", | ||
| "yargs-parser": "21.1.1", | ||
| "nx": "23.0.1", | ||
| "@nx/devkit": "23.0.1" | ||
| "nx": "23.0.2", | ||
| "@nx/devkit": "23.0.2" | ||
| }, | ||
| "devDependencies": { | ||
| "nx": "23.0.1" | ||
| "nx": "23.0.2" | ||
| }, | ||
@@ -95,0 +95,0 @@ "publishConfig": { |
245053
0.08%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated