@nx/esbuild 21.2.0-beta.2 → 21.2.0-beta.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": "21.2.0-beta.2",
3
+ "version": "21.2.0-beta.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,8 +31,8 @@
31
31
  "migrations": "./migrations.json"
32
32
  },
33
33
  "dependencies": {
34
- "@nx/devkit": "21.2.0-beta.2",
35
- "@nx/js": "21.2.0-beta.2",
34
+ "@nx/devkit": "21.2.0-beta.3",
35
+ "@nx/js": "21.2.0-beta.3",
36
36
  "tinyglobby": "^0.2.12",
37
37
  "picocolors": "^1.1.0",
38
38
  "tsconfig-paths": "^4.1.2",
@@ -103,12 +103,17 @@ async function* esbuildExecutor(_options, context) {
103
103
  ].filter(Boolean),
104
104
  });
105
105
  await ctx.watch();
106
- return () => ctx.dispose();
106
+ return async () => ctx.dispose();
107
107
  }));
108
108
  registerCleanupCallback(() => {
109
- assetsResult?.stop();
110
- packageJsonResult?.stop();
111
- disposeFns.forEach((fn) => fn());
109
+ if (typeof assetsResult?.stop === 'function')
110
+ assetsResult.stop();
111
+ if (typeof packageJsonResult?.stop === 'function') {
112
+ packageJsonResult.stop();
113
+ }
114
+ disposeFns.forEach(async (fn) => {
115
+ await fn();
116
+ });
112
117
  done(); // return from async iterable
113
118
  });
114
119
  });