@nx/esbuild 19.8.0 → 19.8.2

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/esbuild",
3
- "version": "19.8.0",
3
+ "version": "19.8.2",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for esbuild contains executors and generators that support building applications using esbuild",
6
6
  "repository": {
@@ -31,14 +31,14 @@
31
31
  "migrations": "./migrations.json"
32
32
  },
33
33
  "dependencies": {
34
- "chalk": "^4.1.0",
34
+ "@nx/devkit": "19.8.2",
35
+ "@nx/js": "19.8.2",
35
36
  "fast-glob": "3.2.7",
36
37
  "fs-extra": "^11.1.0",
37
- "tslib": "^2.3.0",
38
+ "picocolors": "^1.1.0",
38
39
  "tsconfig-paths": "^4.1.2",
39
- "@nx/devkit": "19.8.0",
40
- "@nx/js": "19.8.0",
41
- "@nrwl/esbuild": "19.8.0"
40
+ "tslib": "^2.3.0",
41
+ "@nrwl/esbuild": "19.8.2"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "esbuild": "~0.19.2"
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.esbuildExecutor = esbuildExecutor;
4
- const chalk = require("chalk");
4
+ const pc = require("picocolors");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const js_1 = require("@nx/js");
7
7
  const esbuild = require("esbuild");
@@ -11,8 +11,8 @@ const async_iterable_1 = require("@nx/devkit/src/utils/async-iterable");
11
11
  const build_esbuild_options_1 = require("./lib/build-esbuild-options");
12
12
  const get_extra_dependencies_1 = require("./lib/get-extra-dependencies");
13
13
  const path_1 = require("path");
14
- const BUILD_WATCH_FAILED = `[ ${chalk.red('watch')} ] build finished with errors (see above), watching for changes...`;
15
- const BUILD_WATCH_SUCCEEDED = `[ ${chalk.green('watch')} ] build succeeded, watching for changes...`;
14
+ const BUILD_WATCH_FAILED = `[ ${pc.red('watch')} ] build finished with errors (see above), watching for changes...`;
15
+ const BUILD_WATCH_SUCCEEDED = `[ ${pc.green('watch')} ] build succeeded, watching for changes...`;
16
16
  async function* esbuildExecutor(_options, context) {
17
17
  process.env.NODE_ENV ??= context.configurationName ?? 'production';
18
18
  const options = (0, normalize_1.normalizeOptions)(_options, context);
@@ -4,7 +4,7 @@ exports.normalizeOptions = normalizeOptions;
4
4
  const fs = require("fs");
5
5
  const path = require("path");
6
6
  const devkit_1 = require("@nx/devkit");
7
- const chalk = require("chalk");
7
+ const pc = require("picocolors");
8
8
  const js_1 = require("@nx/js");
9
9
  function normalizeOptions(options, context) {
10
10
  const tsConfig = (0, js_1.readTsConfig)(options.tsConfig);
@@ -16,7 +16,7 @@ function normalizeOptions(options, context) {
16
16
  (0, devkit_1.joinPathFragments)(context.projectGraph.nodes[context.projectName].data.root, 'package.json'),
17
17
  ];
18
18
  if (!options.bundle && options.thirdParty) {
19
- devkit_1.logger.info(chalk.yellow(`Your build has conflicting options, ${chalk.bold('bundle:false')} and ${chalk.bold('thirdParty:true')}. Your package.json depedencies might not be generated correctly so we added an update ${chalk.bold('thirdParty:false')}`));
19
+ devkit_1.logger.info(pc.yellow(`Your build has conflicting options, ${pc.bold('bundle:false')} and ${pc.bold('thirdParty:true')}. Your package.json depedencies might not be generated correctly so we added an update ${pc.bold('thirdParty:false')}`));
20
20
  }
21
21
  const thirdParty = !options.bundle ? false : options.thirdParty;
22
22
  const { root: projectRoot } = context.projectsConfigurations.projects[context.projectName];
@@ -27,7 +27,7 @@ function normalizeOptions(options, context) {
27
27
  const declaration = options.declaration ??
28
28
  (tsConfig.options.declaration || tsConfig.options.composite);
29
29
  if (options.skipTypeCheck && declaration) {
30
- devkit_1.logger.info(chalk.yellow(`Your build has conflicting options, ${chalk.bold('skipTypeCheck:true')} and ${chalk.bold('declaration:true')}. Your declarations won't be generated so we added an update ${chalk.bold('skipTypeCheck:false')}`));
30
+ devkit_1.logger.info(pc.yellow(`Your build has conflicting options, ${pc.bold('skipTypeCheck:true')} and ${pc.bold('declaration:true')}. Your declarations won't be generated so we added an update ${pc.bold('skipTypeCheck:false')}`));
31
31
  }
32
32
  const skipTypeCheck = declaration ? false : options.skipTypeCheck;
33
33
  let userDefinedBuildOptions;