nx 19.5.0-canary.20240709-92e09d9 → 19.5.0-canary.20240711-2c4c2ae

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",
3
- "version": "19.5.0-canary.20240709-92e09d9",
3
+ "version": "19.5.0-canary.20240711-2c4c2ae",
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": {
@@ -71,7 +71,7 @@
71
71
  "yargs-parser": "21.1.1",
72
72
  "node-machine-id": "1.1.12",
73
73
  "ora": "5.3.0",
74
- "@nrwl/tao": "19.5.0-canary.20240709-92e09d9"
74
+ "@nrwl/tao": "19.5.0-canary.20240711-2c4c2ae"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@swc-node/register": "^1.8.0",
@@ -86,16 +86,16 @@
86
86
  }
87
87
  },
88
88
  "optionalDependencies": {
89
- "@nx/nx-darwin-x64": "19.5.0-canary.20240709-92e09d9",
90
- "@nx/nx-darwin-arm64": "19.5.0-canary.20240709-92e09d9",
91
- "@nx/nx-linux-x64-gnu": "19.5.0-canary.20240709-92e09d9",
92
- "@nx/nx-linux-x64-musl": "19.5.0-canary.20240709-92e09d9",
93
- "@nx/nx-win32-x64-msvc": "19.5.0-canary.20240709-92e09d9",
94
- "@nx/nx-linux-arm64-gnu": "19.5.0-canary.20240709-92e09d9",
95
- "@nx/nx-linux-arm64-musl": "19.5.0-canary.20240709-92e09d9",
96
- "@nx/nx-linux-arm-gnueabihf": "19.5.0-canary.20240709-92e09d9",
97
- "@nx/nx-win32-arm64-msvc": "19.5.0-canary.20240709-92e09d9",
98
- "@nx/nx-freebsd-x64": "19.5.0-canary.20240709-92e09d9"
89
+ "@nx/nx-darwin-x64": "19.5.0-canary.20240711-2c4c2ae",
90
+ "@nx/nx-darwin-arm64": "19.5.0-canary.20240711-2c4c2ae",
91
+ "@nx/nx-linux-x64-gnu": "19.5.0-canary.20240711-2c4c2ae",
92
+ "@nx/nx-linux-x64-musl": "19.5.0-canary.20240711-2c4c2ae",
93
+ "@nx/nx-win32-x64-msvc": "19.5.0-canary.20240711-2c4c2ae",
94
+ "@nx/nx-linux-arm64-gnu": "19.5.0-canary.20240711-2c4c2ae",
95
+ "@nx/nx-linux-arm64-musl": "19.5.0-canary.20240711-2c4c2ae",
96
+ "@nx/nx-linux-arm-gnueabihf": "19.5.0-canary.20240711-2c4c2ae",
97
+ "@nx/nx-win32-arm64-msvc": "19.5.0-canary.20240711-2c4c2ae",
98
+ "@nx/nx-freebsd-x64": "19.5.0-canary.20240711-2c4c2ae"
99
99
  },
100
100
  "nx-migrations": {
101
101
  "migrations": "./migrations.json",
Binary file
@@ -25,5 +25,5 @@ export declare const nxPluginCache: Map<unknown, [
25
25
  Promise<LoadedNxPlugin>,
26
26
  () => void
27
27
  ]>;
28
- export declare function loadNxPlugins(plugins: PluginConfiguration[], root?: string): Promise<[LoadedNxPlugin[], () => void]>;
28
+ export declare function loadNxPlugins(plugins: PluginConfiguration[], root?: string): Promise<readonly [LoadedNxPlugin[], () => void]>;
29
29
  export declare function getDefaultPlugins(root: string): Promise<string[]>;
@@ -69,18 +69,19 @@ exports.LoadedNxPlugin = LoadedNxPlugin;
69
69
  // referenced multiple times.
70
70
  exports.nxPluginCache = new Map();
71
71
  async function loadNxPlugins(plugins, root = workspace_root_1.workspaceRoot) {
72
- const result = [];
73
- const loadingMethod = process.env.NX_ISOLATE_PLUGINS === 'true'
72
+ performance.mark('loadNxPlugins:start');
73
+ const loadingMethod = process.env.NX_ISOLATE_PLUGINS !== 'false'
74
74
  ? isolation_1.loadNxPluginInIsolation
75
75
  : loader_1.loadNxPlugin;
76
76
  plugins = await normalizePlugins(plugins, root);
77
+ const result = new Array(plugins?.length);
77
78
  const cleanupFunctions = [];
78
- for (const plugin of plugins) {
79
+ await Promise.all(plugins.map(async (plugin, idx) => {
79
80
  const [loadedPluginPromise, cleanup] = await loadingMethod(plugin, root);
80
- result.push(loadedPluginPromise);
81
+ result[idx] = loadedPluginPromise;
81
82
  cleanupFunctions.push(cleanup);
82
- }
83
- return [
83
+ }));
84
+ const ret = [
84
85
  await Promise.all(result),
85
86
  () => {
86
87
  for (const fn of cleanupFunctions) {
@@ -91,6 +92,9 @@ async function loadNxPlugins(plugins, root = workspace_root_1.workspaceRoot) {
91
92
  }
92
93
  },
93
94
  ];
95
+ performance.mark('loadNxPlugins:end');
96
+ performance.measure('loadNxPlugins', 'loadNxPlugins:start', 'loadNxPlugins:end');
97
+ return ret;
94
98
  }
95
99
  exports.loadNxPlugins = loadNxPlugins;
96
100
  async function normalizePlugins(plugins, root) {
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const messaging_1 = require("./messaging");
4
4
  const loader_1 = require("../loader");
5
5
  const serializable_error_1 = require("../../../utils/serializable-error");
6
- const net_1 = require("net");
7
6
  const consume_messages_from_socket_1 = require("../../../utils/consume-messages-from-socket");
7
+ const net_1 = require("net");
8
8
  const fs_1 = require("fs");
9
9
  if (process.env.NX_PERF_LOGGING === 'true') {
10
10
  require('../../../utils/perf-logging');
@@ -264,6 +264,14 @@ class TaskOrchestrator {
264
264
  });
265
265
  }
266
266
  }
267
+ else if (targetConfiguration.executor === 'nx:noop') {
268
+ (0, fs_1.writeFileSync)(temporaryOutputPath, '');
269
+ results.push({
270
+ task,
271
+ status: 'success',
272
+ terminalOutput: '',
273
+ });
274
+ }
267
275
  else {
268
276
  // cache prep
269
277
  const { code, terminalOutput } = await this.runTaskInForkedProcess(task, env, pipeOutput, temporaryOutputPath, streamOutput);