@nx/esbuild 22.5.2 → 22.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/esbuild",
3
- "version": "22.5.2",
3
+ "version": "22.5.3",
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,15 +31,15 @@
31
31
  "migrations": "./migrations.json"
32
32
  },
33
33
  "dependencies": {
34
- "@nx/devkit": "22.5.2",
35
- "@nx/js": "22.5.2",
34
+ "@nx/devkit": "22.5.3",
35
+ "@nx/js": "22.5.3",
36
36
  "tinyglobby": "^0.2.12",
37
37
  "picocolors": "^1.1.0",
38
38
  "tsconfig-paths": "^4.1.2",
39
39
  "tslib": "^2.3.0"
40
40
  },
41
41
  "devDependencies": {
42
- "nx": "22.5.2"
42
+ "nx": "22.5.3"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "esbuild": ">=0.19.2 <1.0.0"
@@ -1 +1 @@
1
- {"version":3,"file":"esbuild.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/esbuild/src/executors/esbuild/esbuild.impl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAmBlD,OAAO,EACL,sBAAsB,EAEvB,MAAM,UAAU,CAAC;AAwBlB,wBAAuB,eAAe,CACpC,QAAQ,EAAE,sBAAsB,EAChC,OAAO,EAAE,eAAe;aAqEuB,OAAO;cAAY,MAAM;aA6GzE;AAkED,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"esbuild.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/esbuild/src/executors/esbuild/esbuild.impl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAmBlD,OAAO,EACL,sBAAsB,EAEvB,MAAM,UAAU,CAAC;AAwBlB,wBAAuB,eAAe,CACpC,QAAQ,EAAE,sBAAsB,EAChC,OAAO,EAAE,eAAe;aAqEuB,OAAO;cAAY,MAAM;aAgHzE;AAkED,eAAe,eAAe,CAAC"}
@@ -81,7 +81,7 @@ async function* esbuildExecutor(_options, context) {
81
81
  setup(build) {
82
82
  build.onEnd(async (result) => {
83
83
  if (!options.skipTypeCheck ||
84
- options.isTsSolutionSetup) {
84
+ (options.isTsSolutionSetup && options.declaration)) {
85
85
  const { errors } = await runTypeCheck(options, context);
86
86
  hasTypeErrors = errors.length > 0;
87
87
  }
@@ -122,7 +122,8 @@ async function* esbuildExecutor(_options, context) {
122
122
  }
123
123
  else {
124
124
  // Run type-checks first and bail if they don't pass.
125
- if (!options.skipTypeCheck || options.isTsSolutionSetup) {
125
+ if (!options.skipTypeCheck ||
126
+ (options.isTsSolutionSetup && options.declaration)) {
126
127
  const { errors } = await runTypeCheck(options, context);
127
128
  if (errors.length > 0) {
128
129
  yield { success: false };
@@ -10,7 +10,7 @@ const pc = require("picocolors");
10
10
  function normalizeOptions(options, context) {
11
11
  const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)();
12
12
  if (isTsSolutionSetup && options.generatePackageJson) {
13
- throw new Error(`Setting 'generatePackageJson: true' is not supported with the current TypeScript setup. Update the 'package.json' file at the project root as needed and unset the 'generatePackageJson' option.`);
13
+ throw new Error(`Setting 'generatePackageJson: true' is not supported with the current TypeScript setup. Update the 'package.json' file at the project root as needed and unset the 'generatePackageJson' option. See https://nx.dev/docs/technologies/node/guides/deploying-node-projects for the recommended pruned package.json workflow.`);
14
14
  }
15
15
  const tsConfig = (0, js_1.readTsConfig)(options.tsConfig);
16
16
  // If we're not generating package.json file, then copy it as-is as an asset when not using ts solution setup.