@nx/js 19.4.0-rc.0 → 19.4.0

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/js",
3
- "version": "19.4.0-rc.0",
3
+ "version": "19.4.0",
4
4
  "private": false,
5
5
  "description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
6
6
  "repository": {
@@ -58,9 +58,9 @@
58
58
  "semver": "^7.5.3",
59
59
  "source-map-support": "0.5.19",
60
60
  "tslib": "^2.3.0",
61
- "@nx/devkit": "19.4.0-rc.0",
62
- "@nx/workspace": "19.4.0-rc.0",
63
- "@nrwl/js": "19.4.0-rc.0"
61
+ "@nx/devkit": "19.4.0",
62
+ "@nx/workspace": "19.4.0",
63
+ "@nrwl/js": "19.4.0"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "verdaccio": "^5.0.4"
@@ -145,6 +145,25 @@ async function* nodeExecutor(options, context) {
145
145
  };
146
146
  tasks.push(task);
147
147
  };
148
+ const stopAllTasks = async (signal = 'SIGTERM') => {
149
+ additionalExitHandler?.();
150
+ await currentTask?.stop(signal);
151
+ for (const task of tasks) {
152
+ await task.stop(signal);
153
+ }
154
+ };
155
+ process.on('SIGTERM', async () => {
156
+ await stopAllTasks('SIGTERM');
157
+ process.exit(128 + 15);
158
+ });
159
+ process.on('SIGINT', async () => {
160
+ await stopAllTasks('SIGINT');
161
+ process.exit(128 + 2);
162
+ });
163
+ process.on('SIGHUP', async () => {
164
+ await stopAllTasks('SIGHUP');
165
+ process.exit(128 + 1);
166
+ });
148
167
  if (options.runBuildTargetDependencies) {
149
168
  // If a all dependencies need to be rebuild on changes, then register with watcher
150
169
  // and run through CLI, otherwise only the current project will rebuild.
@@ -204,24 +223,6 @@ async function* nodeExecutor(options, context) {
204
223
  }
205
224
  }
206
225
  }
207
- const stopAllTasks = (signal = 'SIGTERM') => {
208
- additionalExitHandler?.();
209
- for (const task of tasks) {
210
- task.stop(signal);
211
- }
212
- };
213
- process.on('SIGTERM', async () => {
214
- stopAllTasks('SIGTERM');
215
- process.exit(128 + 15);
216
- });
217
- process.on('SIGINT', async () => {
218
- stopAllTasks('SIGINT');
219
- process.exit(128 + 2);
220
- });
221
- process.on('SIGHUP', async () => {
222
- stopAllTasks('SIGHUP');
223
- process.exit(128 + 1);
224
- });
225
226
  });
226
227
  }
227
228
  exports.nodeExecutor = nodeExecutor;