nx 19.2.0-beta.6 → 19.2.0-beta.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,8 +11,10 @@ const get_cloud_options_1 = require("../src/nx-cloud/utilities/get-cloud-options
11
11
  const nx_cloud_utils_1 = require("../src/utils/nx-cloud-utils");
12
12
  const nx_json_1 = require("../src/config/nx-json");
13
13
  const workspace_context_1 = require("../src/utils/workspace-context");
14
+ const logger_1 = require("../src/utils/logger");
14
15
  (async () => {
15
16
  const start = new Date();
17
+ let errored = false;
16
18
  try {
17
19
  (0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
18
20
  if (isMainNxPackage() && (0, fileutils_1.fileExists)((0, path_1.join)(workspace_root_1.workspaceRoot, 'nx.json'))) {
@@ -28,7 +30,7 @@ const workspace_context_1 = require("../src/utils/workspace-context");
28
30
  tasks.push((0, update_manager_1.verifyOrUpdateNxCloudClient)((0, get_cloud_options_1.getCloudOptions)()));
29
31
  }
30
32
  await Promise.all(tasks.map((promise) => {
31
- promise.catch((e) => {
33
+ return promise.catch((e) => {
32
34
  if (process.env.NX_VERBOSE_LOGGING === 'true') {
33
35
  console.warn(e);
34
36
  }
@@ -37,15 +39,13 @@ const workspace_context_1 = require("../src/utils/workspace-context");
37
39
  }
38
40
  }
39
41
  catch (e) {
40
- if (process.env.NX_VERBOSE_LOGGING === 'true') {
41
- console.log(e);
42
- }
42
+ errored = true;
43
+ logger_1.logger.verbose(e);
43
44
  }
44
45
  finally {
45
- if (process.env.NX_VERBOSE_LOGGING === 'true') {
46
- const end = new Date();
47
- console.log(`Nx postinstall steps took ${end.getTime() - start.getTime()}ms`);
48
- }
46
+ const end = new Date();
47
+ logger_1.logger.verbose(`Nx postinstall steps took ${end.getTime() - start.getTime()}ms`);
48
+ process.exit(errored ? 1 : 0);
49
49
  }
50
50
  })();
51
51
  function isMainNxPackage() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "19.2.0-beta.6",
3
+ "version": "19.2.0-beta.7",
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": {
@@ -69,7 +69,7 @@
69
69
  "yargs-parser": "21.1.1",
70
70
  "node-machine-id": "1.1.12",
71
71
  "ora": "5.3.0",
72
- "@nrwl/tao": "19.2.0-beta.6"
72
+ "@nrwl/tao": "19.2.0-beta.7"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "@swc-node/register": "^1.8.0",
@@ -84,16 +84,16 @@
84
84
  }
85
85
  },
86
86
  "optionalDependencies": {
87
- "@nx/nx-darwin-x64": "19.2.0-beta.6",
88
- "@nx/nx-darwin-arm64": "19.2.0-beta.6",
89
- "@nx/nx-linux-x64-gnu": "19.2.0-beta.6",
90
- "@nx/nx-linux-x64-musl": "19.2.0-beta.6",
91
- "@nx/nx-win32-x64-msvc": "19.2.0-beta.6",
92
- "@nx/nx-linux-arm64-gnu": "19.2.0-beta.6",
93
- "@nx/nx-linux-arm64-musl": "19.2.0-beta.6",
94
- "@nx/nx-linux-arm-gnueabihf": "19.2.0-beta.6",
95
- "@nx/nx-win32-arm64-msvc": "19.2.0-beta.6",
96
- "@nx/nx-freebsd-x64": "19.2.0-beta.6"
87
+ "@nx/nx-darwin-x64": "19.2.0-beta.7",
88
+ "@nx/nx-darwin-arm64": "19.2.0-beta.7",
89
+ "@nx/nx-linux-x64-gnu": "19.2.0-beta.7",
90
+ "@nx/nx-linux-x64-musl": "19.2.0-beta.7",
91
+ "@nx/nx-win32-x64-msvc": "19.2.0-beta.7",
92
+ "@nx/nx-linux-arm64-gnu": "19.2.0-beta.7",
93
+ "@nx/nx-linux-arm64-musl": "19.2.0-beta.7",
94
+ "@nx/nx-linux-arm-gnueabihf": "19.2.0-beta.7",
95
+ "@nx/nx-win32-arm64-msvc": "19.2.0-beta.7",
96
+ "@nx/nx-freebsd-x64": "19.2.0-beta.7"
97
97
  },
98
98
  "nx-migrations": {
99
99
  "migrations": "./migrations.json",
@@ -9,12 +9,12 @@ import { LoadedNxPlugin } from '../plugins/internal-api';
9
9
  * @param nxJson
10
10
  */
11
11
  export declare function retrieveWorkspaceFiles(workspaceRoot: string, projectRootMap: Record<string, string>): Promise<{
12
- allWorkspaceFiles: import("../file-utils").FileData[];
12
+ allWorkspaceFiles: import("nx/src/devkit-exports").FileData[];
13
13
  fileMap: {
14
14
  projectFileMap: ProjectFiles;
15
- nonProjectFiles: import("../../native").FileData[];
15
+ nonProjectFiles: import("nx/src/native").FileData[];
16
16
  };
17
- rustReferences: import("../../native").NxWorkspaceFilesExternals;
17
+ rustReferences: import("nx/src/native").NxWorkspaceFilesExternals;
18
18
  }>;
19
19
  /**
20
20
  * Walk through the workspace and return `ProjectConfigurations`. Only use this if the projectFileMap is not needed.