nx 21.4.0-canary.20250719-34c5b61 → 21.4.0-canary.20250724-b7c1c0e

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.
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"connect-to-nx-cloud.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AA0F9D,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,kBAAkB,EAAE,MAAM,EAC1B,UAAU,EAAE,OAAO,mBAmBpB;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAgDD,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,uBAAuB,EAC/B,MAAM,sCAAmB,GACxB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA6ExB;AAED,iBAAe,yBAAyB,CACtC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,uBAAuB,iBAGjC;AAED,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"connect-to-nx-cloud.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AA0F9D,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,kBAAkB,EAAE,MAAM,EAC1B,UAAU,EAAE,OAAO,mBAepB;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAgDD,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,uBAAuB,EAC/B,MAAM,sCAAmB,GACxB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA6ExB;AAED,iBAAe,yBAAyB,CACtC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,uBAAuB,iBAGjC;AAED,eAAe,yBAAyB,CAAC"}
@@ -69,14 +69,10 @@ async function createNxCloudWorkspaceV2(workspaceName, installationSource, nxIni
69
69
  async function printSuccessMessage(token, installationSource, usesGithub) {
70
70
  const connectCloudUrl = await (0, url_shorten_1.createNxCloudOnboardingURL)(installationSource, token, usesGithub);
71
71
  output_1.output.note({
72
- title: `Your Nx Cloud workspace is ready.`,
72
+ title: `Your Self-Healing CI and Remote Caching setup is almost complete`,
73
73
  bodyLines: [
74
- `To claim it, connect it to your Nx Cloud account:`,
75
- `- Commit and push your changes.`,
76
- `- Create a pull request for the changes.`,
77
- `- Go to the following URL to connect your workspace to Nx Cloud:`,
78
- '',
79
- `${connectCloudUrl}`,
74
+ `1. Commit your changes and push a pull request to your repository.`,
75
+ `2. Go to Nx Cloud and finish the setup: ${connectCloudUrl}`,
80
76
  ],
81
77
  });
82
78
  return connectCloudUrl;
@@ -260,7 +260,7 @@ function stringifyNpmLockfile(graph, rootLockFileContent, packageJson) {
260
260
  }
261
261
  function mapWorkspaceModules(packageJson, rootLockFile, workspaceModules) {
262
262
  const output = {};
263
- for (const [pkgName, pkgVersion] of Object.entries(packageJson.dependencies)) {
263
+ for (const [pkgName, pkgVersion] of Object.entries(packageJson.dependencies ?? {})) {
264
264
  if (workspaceModules.has(pkgName)) {
265
265
  let workspaceModuleDefinition;
266
266
  for (const [depName, depSnapshot] of Object.entries(rootLockFile.packages || rootLockFile.dependencies)) {
@@ -293,7 +293,7 @@ function mapV3Snapshots(mappedPackages, packageJson) {
293
293
  return output;
294
294
  }
295
295
  function mapPackageJsonWithWorkspaceModules(packageJson) {
296
- for (const [pkgName, pkgVersion] of Object.entries(packageJson.dependencies)) {
296
+ for (const [pkgName, pkgVersion] of Object.entries(packageJson.dependencies ?? {})) {
297
297
  if (pkgVersion.startsWith('workspace:') || pkgVersion.startsWith('file:')) {
298
298
  packageJson.dependencies[pkgName] = `workspace_modules/${pkgName}`;
299
299
  }
@@ -1,8 +1,8 @@
1
1
  export type MessageOptionKey = 'yes' | 'skip';
2
2
  declare const messageOptions: {
3
3
  readonly setupNxCloud: readonly [{
4
- readonly code: "enable-caching";
5
- readonly message: "Would you like remote caching to make your build faster?";
4
+ readonly code: "enable-ci";
5
+ readonly message: "Would you like to enable AI-powered Self-Healing CI and Remote Caching?";
6
6
  readonly initial: 0;
7
7
  readonly choices: readonly [{
8
8
  readonly value: "yes";
@@ -11,7 +11,7 @@ declare const messageOptions: {
11
11
  readonly value: "skip";
12
12
  readonly name: "Skip for now";
13
13
  }];
14
- readonly footer: "\nWatch a short video on Nx Cloud at https://nx.dev/ci/intro/why-nx-cloud";
14
+ readonly footer: "\nLearn about it at https://nx.dev/nx-cloud";
15
15
  readonly hint: "\n(it's free and can be disabled any time)";
16
16
  }];
17
17
  readonly setupViewLogs: readonly [{
@@ -1 +1 @@
1
- {"version":3,"file":"ab-testing.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/utils/ab-testing.ts"],"names":[],"mappings":"AAKA,MAAM,MA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E7C;;;GAGG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,iBAsBA"}
@@ -9,14 +9,14 @@ const get_cloud_options_1 = require("../nx-cloud/utilities/get-cloud-options");
9
9
  const messageOptions = {
10
10
  setupNxCloud: [
11
11
  {
12
- code: 'enable-caching',
13
- message: `Would you like remote caching to make your build faster?`,
12
+ code: 'enable-ci',
13
+ message: `Would you like to enable AI-powered Self-Healing CI and Remote Caching?`,
14
14
  initial: 0,
15
15
  choices: [
16
16
  { value: 'yes', name: 'Yes' },
17
17
  { value: 'skip', name: 'Skip for now' },
18
18
  ],
19
- footer: '\nWatch a short video on Nx Cloud at https://nx.dev/ci/intro/why-nx-cloud',
19
+ footer: '\nLearn about it at https://nx.dev/nx-cloud',
20
20
  hint: `\n(it's free and can be disabled any time)`,
21
21
  },
22
22
  ],