nx 20.4.0-canary.20250123-7524356 → 20.4.0-canary.20250125-15fc599

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",
3
- "version": "20.4.0-canary.20250123-7524356",
3
+ "version": "20.4.0-canary.20250125-15fc599",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -82,16 +82,16 @@
82
82
  }
83
83
  },
84
84
  "optionalDependencies": {
85
- "@nx/nx-darwin-arm64": "20.4.0-canary.20250123-7524356",
86
- "@nx/nx-darwin-x64": "20.4.0-canary.20250123-7524356",
87
- "@nx/nx-freebsd-x64": "20.4.0-canary.20250123-7524356",
88
- "@nx/nx-linux-arm-gnueabihf": "20.4.0-canary.20250123-7524356",
89
- "@nx/nx-linux-arm64-gnu": "20.4.0-canary.20250123-7524356",
90
- "@nx/nx-linux-arm64-musl": "20.4.0-canary.20250123-7524356",
91
- "@nx/nx-linux-x64-gnu": "20.4.0-canary.20250123-7524356",
92
- "@nx/nx-linux-x64-musl": "20.4.0-canary.20250123-7524356",
93
- "@nx/nx-win32-arm64-msvc": "20.4.0-canary.20250123-7524356",
94
- "@nx/nx-win32-x64-msvc": "20.4.0-canary.20250123-7524356"
85
+ "@nx/nx-darwin-arm64": "20.4.0-canary.20250125-15fc599",
86
+ "@nx/nx-darwin-x64": "20.4.0-canary.20250125-15fc599",
87
+ "@nx/nx-freebsd-x64": "20.4.0-canary.20250125-15fc599",
88
+ "@nx/nx-linux-arm-gnueabihf": "20.4.0-canary.20250125-15fc599",
89
+ "@nx/nx-linux-arm64-gnu": "20.4.0-canary.20250125-15fc599",
90
+ "@nx/nx-linux-arm64-musl": "20.4.0-canary.20250125-15fc599",
91
+ "@nx/nx-linux-x64-gnu": "20.4.0-canary.20250125-15fc599",
92
+ "@nx/nx-linux-x64-musl": "20.4.0-canary.20250125-15fc599",
93
+ "@nx/nx-win32-arm64-msvc": "20.4.0-canary.20250125-15fc599",
94
+ "@nx/nx-win32-x64-msvc": "20.4.0-canary.20250125-15fc599"
95
95
  },
96
96
  "nx-migrations": {
97
97
  "migrations": "./migrations.json",
@@ -94,5 +94,12 @@ exports.DEFAULT_CONVENTIONAL_COMMITS_CONFIG = {
94
94
  hidden: true,
95
95
  },
96
96
  },
97
+ __INVALID__: {
98
+ semverBump: 'none',
99
+ changelog: {
100
+ title: 'Invalid based on conventional commits specification',
101
+ hidden: true,
102
+ },
103
+ },
97
104
  },
98
105
  };
@@ -292,7 +292,12 @@ function parseCommits(commits) {
292
292
  function parseConventionalCommitsMessage(message) {
293
293
  const match = message.match(ConventionalCommitRegex);
294
294
  if (!match) {
295
- return null;
295
+ return {
296
+ type: '__INVALID__',
297
+ scope: '',
298
+ description: message,
299
+ breaking: false,
300
+ };
296
301
  }
297
302
  return {
298
303
  type: match.groups.type || '',
Binary file
@@ -220,46 +220,24 @@ class ForkedProcessTaskRunner {
220
220
  }
221
221
  }
222
222
  let outWithErr = [];
223
- let exitCode;
224
- let stdoutHasEnded = false;
225
- let stderrHasEnded = false;
226
- let processHasExited = false;
227
- const handleProcessEnd = () => {
228
- // ensure process has exited and both stdout and stderr have ended before we pass along the logs
229
- // if we only wait for the process to exit, we might miss some logs as stdout and stderr might still be streaming
230
- if (stdoutHasEnded && stderrHasEnded && processHasExited) {
231
- // we didn't print any output as we were running the command
232
- // print all the collected output|
233
- const terminalOutput = outWithErr.join('');
234
- const code = exitCode;
235
- if (!streamOutput) {
236
- this.options.lifeCycle.printTaskTerminalOutput(task, code === 0 ? 'success' : 'failure', terminalOutput);
237
- }
238
- this.writeTerminalOutput(temporaryOutputPath, terminalOutput);
239
- res({ code, terminalOutput });
240
- }
241
- };
242
223
  p.stdout.on('data', (chunk) => {
243
224
  outWithErr.push(chunk.toString());
244
225
  });
245
- p.stdout.on('end', () => {
246
- stdoutHasEnded = true;
247
- handleProcessEnd();
248
- });
249
226
  p.stderr.on('data', (chunk) => {
250
227
  outWithErr.push(chunk.toString());
251
228
  });
252
- p.stderr.on('end', () => {
253
- stderrHasEnded = true;
254
- handleProcessEnd();
255
- });
256
229
  p.on('exit', (code, signal) => {
257
230
  this.processes.delete(p);
258
231
  if (code === null)
259
232
  code = (0, exit_codes_1.signalToCode)(signal);
260
- exitCode = code;
261
- processHasExited = true;
262
- handleProcessEnd();
233
+ // we didn't print any output as we were running the command
234
+ // print all the collected output|
235
+ const terminalOutput = outWithErr.join('');
236
+ if (!streamOutput) {
237
+ this.options.lifeCycle.printTaskTerminalOutput(task, code === 0 ? 'success' : 'failure', terminalOutput);
238
+ }
239
+ this.writeTerminalOutput(temporaryOutputPath, terminalOutput);
240
+ res({ code, terminalOutput });
263
241
  });
264
242
  }
265
243
  catch (e) {