nx 19.0.0-rc.1 → 19.0.0-rc.2

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": "19.0.0-rc.1",
3
+ "version": "19.0.0-rc.2",
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": {
@@ -66,7 +66,7 @@
66
66
  "yargs-parser": "21.1.1",
67
67
  "node-machine-id": "1.1.12",
68
68
  "ora": "5.3.0",
69
- "@nrwl/tao": "19.0.0-rc.1"
69
+ "@nrwl/tao": "19.0.0-rc.2"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@swc-node/register": "^1.8.0",
@@ -81,16 +81,16 @@
81
81
  }
82
82
  },
83
83
  "optionalDependencies": {
84
- "@nx/nx-darwin-x64": "19.0.0-rc.1",
85
- "@nx/nx-darwin-arm64": "19.0.0-rc.1",
86
- "@nx/nx-linux-x64-gnu": "19.0.0-rc.1",
87
- "@nx/nx-linux-x64-musl": "19.0.0-rc.1",
88
- "@nx/nx-win32-x64-msvc": "19.0.0-rc.1",
89
- "@nx/nx-linux-arm64-gnu": "19.0.0-rc.1",
90
- "@nx/nx-linux-arm64-musl": "19.0.0-rc.1",
91
- "@nx/nx-linux-arm-gnueabihf": "19.0.0-rc.1",
92
- "@nx/nx-win32-arm64-msvc": "19.0.0-rc.1",
93
- "@nx/nx-freebsd-x64": "19.0.0-rc.1"
84
+ "@nx/nx-darwin-x64": "19.0.0-rc.2",
85
+ "@nx/nx-darwin-arm64": "19.0.0-rc.2",
86
+ "@nx/nx-linux-x64-gnu": "19.0.0-rc.2",
87
+ "@nx/nx-linux-x64-musl": "19.0.0-rc.2",
88
+ "@nx/nx-win32-x64-msvc": "19.0.0-rc.2",
89
+ "@nx/nx-linux-arm64-gnu": "19.0.0-rc.2",
90
+ "@nx/nx-linux-arm64-musl": "19.0.0-rc.2",
91
+ "@nx/nx-linux-arm-gnueabihf": "19.0.0-rc.2",
92
+ "@nx/nx-win32-arm64-msvc": "19.0.0-rc.2",
93
+ "@nx/nx-freebsd-x64": "19.0.0-rc.2"
94
94
  },
95
95
  "nx-migrations": {
96
96
  "migrations": "./migrations.json",
@@ -3,10 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.connectExistingRepoToNxCloudPrompt = exports.connectToNxCloudWithPrompt = exports.connectToNxCloudCommand = exports.connectToNxCloudIfExplicitlyAsked = exports.onlyDefaultRunnerIsUsed = void 0;
4
4
  const output_1 = require("../../utils/output");
5
5
  const configuration_1 = require("../../config/configuration");
6
+ const tree_1 = require("../../generators/tree");
7
+ const connect_to_nx_cloud_1 = require("../../nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud");
6
8
  const nx_cloud_utils_1 = require("../../utils/nx-cloud-utils");
7
9
  const child_process_1 = require("../../utils/child-process");
8
10
  const ab_testing_1 = require("../../utils/ab-testing");
9
11
  const versions_1 = require("../../utils/versions");
12
+ const workspace_root_1 = require("../../utils/workspace-root");
10
13
  const chalk = require("chalk");
11
14
  function onlyDefaultRunnerIsUsed(nxJson) {
12
15
  const defaultRunner = nxJson.tasksRunnerOptions?.default?.runner;
@@ -49,9 +52,11 @@ async function connectToNxCloudCommand() {
49
52
  });
50
53
  return false;
51
54
  }
52
- (0, child_process_1.runNxSync)(`g nx:connect-to-nx-cloud --quiet --no-interactive`, {
53
- stdio: [0, 1, 2],
54
- });
55
+ const tree = new tree_1.FsTree(workspace_root_1.workspaceRoot, false, 'connect-to-nx-cloud');
56
+ const callback = await (0, connect_to_nx_cloud_1.connectToNxCloud)(tree, {});
57
+ tree.lock();
58
+ (0, tree_1.flushChanges)(workspace_root_1.workspaceRoot, tree.listChanges());
59
+ callback();
55
60
  return true;
56
61
  }
57
62
  exports.connectToNxCloudCommand = connectToNxCloudCommand;