create-nx-plugin 19.8.0-canary.20240920-999abe9 → 19.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.commandsObject = exports.yargsDecorator = void 0;
5
- const chalk = require("chalk");
5
+ const pc = require("picocolors");
6
6
  const enquirer = require("enquirer");
7
7
  const yargs = require("yargs");
8
8
  const prompts_1 = require("create-nx-workspace/src/internal-utils/prompts");
@@ -12,16 +12,16 @@ const output_1 = require("create-nx-workspace/src/utils/output");
12
12
  const show_nx_warning_1 = require("create-nx-workspace/src/utils/nx/show-nx-warning");
13
13
  const ab_testing_1 = require("create-nx-workspace/src/utils/nx/ab-testing");
14
14
  exports.yargsDecorator = {
15
- 'Options:': `${chalk.green `Options`}:`,
16
- 'Examples:': `${chalk.green `Examples`}:`,
17
- boolean: `${chalk.blue `boolean`}`,
18
- count: `${chalk.blue `count`}`,
19
- string: `${chalk.blue `string`}`,
20
- array: `${chalk.blue `array`}`,
21
- required: `${chalk.blue `required`}`,
22
- 'default:': `${chalk.blue `default`}:`,
23
- 'choices:': `${chalk.blue `choices`}:`,
24
- 'aliases:': `${chalk.blue `aliases`}:`,
15
+ 'Options:': `${pc.green(`Options`)}:`,
16
+ 'Examples:': `${pc.green(`Examples`)}:`,
17
+ boolean: `${pc.blue(`boolean`)}`,
18
+ count: `${pc.blue(`count`)}`,
19
+ string: `${pc.blue(`string`)}`,
20
+ array: `${pc.blue(`array`)}`,
21
+ required: `${pc.blue(`required`)}`,
22
+ 'default:': `${pc.blue(`default`)}:`,
23
+ 'choices:': `${pc.blue(`choices`)}:`,
24
+ 'aliases:': `${pc.blue(`aliases`)}:`,
25
25
  };
26
26
  const nxVersion = require('../package.json').version;
27
27
  async function determinePluginName(parsedArgs) {
@@ -61,7 +61,7 @@ exports.commandsObject = yargs
61
61
  // this is the default and only command
62
62
  '$0 [name] [options]', 'Create a new Nx plugin workspace', (yargs) => (0, yargs_options_1.withOptions)(yargs
63
63
  .positional('pluginName', {
64
- describe: chalk.dim `Plugin name`,
64
+ describe: pc.dim(`Plugin name`),
65
65
  type: 'string',
66
66
  alias: ['name'],
67
67
  })
@@ -77,9 +77,9 @@ exports.commandsObject = yargs
77
77
  throw error;
78
78
  });
79
79
  }, [normalizeArgsMiddleware])
80
- .help('help', chalk.dim `Show help`)
80
+ .help('help', pc.dim(`Show help`))
81
81
  .updateLocale(exports.yargsDecorator)
82
- .version('version', chalk.dim `Show version`, nxVersion);
82
+ .version('version', pc.dim(`Show version`), nxVersion);
83
83
  async function main(parsedArgs) {
84
84
  const populatedArguments = {
85
85
  ...parsedArgs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nx-plugin",
3
- "version": "19.8.0-canary.20240920-999abe9",
3
+ "version": "19.8.1",
4
4
  "private": false,
5
5
  "description": "This package is used to scaffold a brand-new workspace used to develop an Nx plugin, and sets up a pre-configured plugin with the specified name. The new plugin is created with a default generator, executor, and e2e app.",
6
6
  "repository": {
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "homepage": "https://nx.dev",
31
31
  "dependencies": {
32
- "create-nx-workspace": "19.8.0-canary.20240920-999abe9",
33
- "chalk": "^4.1.0",
32
+ "create-nx-workspace": "19.8.1",
33
+ "picocolors": "^1.1.0",
34
34
  "enquirer": "~2.3.6",
35
35
  "tslib": "^2.3.0",
36
36
  "yargs": "^17.6.2"