nx 20.0.0-canary.20240926-529ab94 → 20.0.0-canary.20240928-f221a41

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": "20.0.0-canary.20240926-529ab94",
3
+ "version": "20.0.0-canary.20240928-f221a41",
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": {
@@ -58,7 +58,6 @@
58
58
  "open": "^8.4.0",
59
59
  "semver": "^7.5.3",
60
60
  "string-width": "^4.2.3",
61
- "strong-log-transformer": "^2.1.0",
62
61
  "tar-stream": "~2.2.0",
63
62
  "tmp": "~0.2.1",
64
63
  "tsconfig-paths": "^4.1.2",
@@ -66,8 +65,7 @@
66
65
  "yargs": "^17.6.2",
67
66
  "yargs-parser": "21.1.1",
68
67
  "node-machine-id": "1.1.12",
69
- "ora": "5.3.0",
70
- "@nrwl/tao": "20.0.0-canary.20240926-529ab94"
68
+ "ora": "5.3.0"
71
69
  },
72
70
  "peerDependencies": {
73
71
  "@swc-node/register": "^1.8.0",
@@ -82,16 +80,16 @@
82
80
  }
83
81
  },
84
82
  "optionalDependencies": {
85
- "@nx/nx-darwin-x64": "20.0.0-canary.20240926-529ab94",
86
- "@nx/nx-darwin-arm64": "20.0.0-canary.20240926-529ab94",
87
- "@nx/nx-linux-x64-gnu": "20.0.0-canary.20240926-529ab94",
88
- "@nx/nx-linux-x64-musl": "20.0.0-canary.20240926-529ab94",
89
- "@nx/nx-win32-x64-msvc": "20.0.0-canary.20240926-529ab94",
90
- "@nx/nx-linux-arm64-gnu": "20.0.0-canary.20240926-529ab94",
91
- "@nx/nx-linux-arm64-musl": "20.0.0-canary.20240926-529ab94",
92
- "@nx/nx-linux-arm-gnueabihf": "20.0.0-canary.20240926-529ab94",
93
- "@nx/nx-win32-arm64-msvc": "20.0.0-canary.20240926-529ab94",
94
- "@nx/nx-freebsd-x64": "20.0.0-canary.20240926-529ab94"
83
+ "@nx/nx-darwin-x64": "20.0.0-canary.20240928-f221a41",
84
+ "@nx/nx-darwin-arm64": "20.0.0-canary.20240928-f221a41",
85
+ "@nx/nx-linux-x64-gnu": "20.0.0-canary.20240928-f221a41",
86
+ "@nx/nx-linux-x64-musl": "20.0.0-canary.20240928-f221a41",
87
+ "@nx/nx-win32-x64-msvc": "20.0.0-canary.20240928-f221a41",
88
+ "@nx/nx-linux-arm64-gnu": "20.0.0-canary.20240928-f221a41",
89
+ "@nx/nx-linux-arm64-musl": "20.0.0-canary.20240928-f221a41",
90
+ "@nx/nx-linux-arm-gnueabihf": "20.0.0-canary.20240928-f221a41",
91
+ "@nx/nx-win32-arm64-msvc": "20.0.0-canary.20240928-f221a41",
92
+ "@nx/nx-freebsd-x64": "20.0.0-canary.20240928-f221a41"
95
93
  },
96
94
  "nx-migrations": {
97
95
  "migrations": "./migrations.json",
@@ -140,6 +138,8 @@
140
138
  "@nrwl/rollup",
141
139
  "@nx/remix",
142
140
  "@nrwl/remix",
141
+ "@nx/rspack",
142
+ "@nrwl/rspack",
143
143
  "@nx/storybook",
144
144
  "@nrwl/storybook",
145
145
  "@nrwl/tao",
@@ -6,15 +6,20 @@ const path_1 = require("path");
6
6
  async function prepareSourceRepo(gitClient, ref, source, relativeDestination, tempImportBranch, sourceRemoteUrl) {
7
7
  const spinner = createSpinner().start(`Fetching ${ref} from ${sourceRemoteUrl}`);
8
8
  const relativeSourceDir = (0, path_1.relative)(gitClient.root, (0, path_1.join)(gitClient.root, source));
9
+ const message = relativeSourceDir.trim()
10
+ ? `Filtering git history to only include files in ${relativeSourceDir}`
11
+ : `Filtering git history`;
9
12
  if (await gitClient.hasFilterRepoInstalled()) {
10
- spinner.start(`Filtering git history to only include files in ${relativeSourceDir}`);
13
+ spinner.start(message);
11
14
  await gitClient.filterRepo(relativeSourceDir, relativeDestination);
12
15
  }
13
16
  else {
14
- spinner.start(`Filtering git history to only include files in ${relativeSourceDir} (this might take a few minutes -- install git-filter-repo for faster performance)`);
17
+ spinner.start(`${message} (this might take a few minutes -- install git-filter-repo for faster performance)`);
15
18
  await gitClient.filterBranch(relativeSourceDir, relativeDestination, tempImportBranch);
16
19
  }
17
- spinner.succeed(`Filtered git history to only include files in ${relativeSourceDir}`);
20
+ spinner.succeed(relativeSourceDir.trim()
21
+ ? `Filtered git history to only include files in ${relativeSourceDir}`
22
+ : `Filtered git history`);
18
23
  spinner.succeed(`${sourceRemoteUrl} has been prepared to be imported into this workspace on a temporary branch: ${tempImportBranch} in ${gitClient.root}`);
19
24
  }
20
25
  function wait(ms) {
@@ -37,16 +37,16 @@ async function resetHandler(args) {
37
37
  try {
38
38
  await killDaemon();
39
39
  }
40
- catch {
41
- errors.push('Failed to stop the Nx Daemon.');
40
+ catch (e) {
41
+ errors.push('Failed to stop the Nx Daemon.', e.toString());
42
42
  }
43
43
  }
44
44
  if (all || args.onlyCache) {
45
45
  try {
46
46
  await cleanupCacheEntries();
47
47
  }
48
- catch {
49
- errors.push('Failed to clean up the cache directory.');
48
+ catch (e) {
49
+ errors.push('Failed to clean up the cache directory.', e.toString());
50
50
  }
51
51
  }
52
52
  if (all || args.onlyWorkspaceData) {
@@ -59,12 +59,17 @@ async function resetHandler(args) {
59
59
  try {
60
60
  await cleanupWorkspaceData();
61
61
  }
62
- catch {
63
- errors.push('Failed to clean up the workspace data directory.');
62
+ catch (e) {
63
+ errors.push('Failed to clean up the workspace data directory.', e.toString());
64
64
  }
65
65
  }
66
66
  if (all || args.onlyCloud) {
67
- await resetCloudClient();
67
+ try {
68
+ await resetCloudClient();
69
+ }
70
+ catch (e) {
71
+ errors.push('Failed to reset the Nx Cloud client.', e.toString());
72
+ }
68
73
  }
69
74
  if (errors.length > 0) {
70
75
  output_1.output.error({
@@ -79,8 +84,10 @@ async function resetHandler(args) {
79
84
  });
80
85
  }
81
86
  }
82
- function killDaemon() {
83
- return client_1.daemonClient.stop();
87
+ async function killDaemon() {
88
+ if (client_1.daemonClient.enabled()) {
89
+ return client_1.daemonClient.stop();
90
+ }
84
91
  }
85
92
  async function resetCloudClient() {
86
93
  // Remove nx cloud marker files. This helps if the use happens to run `nx-cloud start-ci-run` or