Skip to content

chore(repo): update nx to 22.7.0-beta.3#3073

Open
FrozenPandaz wants to merge 7 commits intomasterfrom
upnx
Open

chore(repo): update nx to 22.7.0-beta.3#3073
FrozenPandaz wants to merge 7 commits intomasterfrom
upnx

Conversation

@FrozenPandaz
Copy link
Contributor

@FrozenPandaz FrozenPandaz commented Feb 24, 2026

Updating Nx from 22.6.0-beta.2 to 22.7.0-beta.3

@nx-cloud-snapshot
Copy link
Contributor

nx-cloud-snapshot bot commented Feb 24, 2026

View your CI Pipeline Execution ↗ for commit ac63c0e

Command Status Duration Result
nx affected --targets=lint,test,build,e2e-ci,ty... ❌ Failed 5m 42s View ↗
nx-cloud record -- yarn nx sync:check ✅ Succeeded 9s View ↗
nx-cloud record -- yarn nx run-many -t ktfmtFormat ✅ Succeeded 3m 48s View ↗
nx run-many -t ktfmtFormat ✅ Succeeded 3m 43s View ↗
nx-cloud record -- yarn nx format:check --verbose ✅ Succeeded 1m 29s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-24 21:53:15 UTC

nx-cloud-snapshot[bot]

This comment was marked as outdated.

nx-cloud-snapshot[bot]

This comment was marked as outdated.

@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.6.0-beta.3 chore(repo): update nx to 22.6.0-beta.4 Feb 26, 2026
@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.6.0-beta.4 chore(repo): update nx to 22.6.0-beta.5 Feb 26, 2026
nx-cloud-snapshot[bot]

This comment was marked as outdated.

nx-cloud-snapshot[bot]

This comment was marked as outdated.

@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.6.0-beta.5 chore(repo): update nx to 22.6.0-beta.6 Feb 27, 2026
nx-cloud-snapshot[bot]

This comment was marked as outdated.

@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.6.0-beta.6 chore(repo): update nx to 22.6.0-beta.7 Feb 27, 2026
@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.6.0-beta.7 chore(repo): update nx to 22.6.0-beta.9 Mar 4, 2026
nx-cloud-snapshot[bot]

This comment was marked as outdated.

nx-cloud-snapshot[bot]

This comment was marked as outdated.

@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.6.0-beta.9 chore(repo): update nx to 22.6.0-beta.10 Mar 6, 2026
@FrozenPandaz FrozenPandaz requested a review from MaxKless as a code owner March 9, 2026 16:57
nx-cloud-snapshot[bot]

This comment was marked as outdated.

nx-cloud-snapshot[bot]

This comment was marked as outdated.

@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.6.0-beta.10 chore(repo): update nx to 22.6.0-beta.13 Mar 13, 2026
nx-cloud-snapshot[bot]

This comment was marked as outdated.

@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.6.0-beta.13 chore(repo): update nx to 22.6.0-beta.14 Mar 16, 2026
nx-cloud-snapshot[bot]

This comment was marked as outdated.

@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.6.0-beta.14 chore(repo): update nx to 22.6.0-rc.0 Mar 17, 2026
nx-cloud-snapshot[bot]

This comment was marked as outdated.

nx-cloud-snapshot[bot]

This comment was marked as outdated.

nx-cloud-snapshot[bot]

This comment was marked as outdated.

@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.6.0-rc.0 chore(repo): update nx to 22.7.0-beta.0 Mar 20, 2026
nx-cloud-snapshot[bot]

This comment was marked as outdated.

nx-cloud-snapshot[bot]

This comment was marked as outdated.

@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.7.0-beta.0 chore(repo): update nx to 22.7.0-beta.2 Mar 23, 2026
nx-cloud-snapshot[bot]

This comment was marked as outdated.

@FrozenPandaz FrozenPandaz changed the title chore(repo): update nx to 22.7.0-beta.2 chore(repo): update nx to 22.7.0-beta.3 Mar 24, 2026
Copy link
Contributor

@nx-cloud-snapshot nx-cloud-snapshot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

At least one additional CI pipeline execution has run since the conclusion below was written and it may no longer be applicable.

Nx Cloud is proposing a fix for your failed CI:

We updated import paths for ConfigurationSourceMaps (moved to a new sub-module in Nx 22.7.0-beta.3) and fixed type incompatibilities in CliOption caused by PropertyDescription.items widening to PropertyDescription | PropertyDescription[]. These changes align the codebase with the updated Nx internal APIs introduced by this upgrade.

Warning

We could not verify this fix.

Suggested Fix changes
diff --git a/libs/shared/nx-workspace-info/src/lib/get-nx-workspace-config.ts b/libs/shared/nx-workspace-info/src/lib/get-nx-workspace-config.ts
index d9b2f741..14d1194f 100644
--- a/libs/shared/nx-workspace-info/src/lib/get-nx-workspace-config.ts
+++ b/libs/shared/nx-workspace-info/src/lib/get-nx-workspace-config.ts
@@ -8,7 +8,7 @@ import type {
   ProjectGraph,
 } from 'nx/src/devkit-exports';
 import type { ProjectGraphError } from 'nx/src/project-graph/error-types';
-import type { ConfigurationSourceMaps } from 'nx/src/project-graph/utils/project-configuration-utils';
+import type { ConfigurationSourceMaps } from 'nx/src/project-graph/utils/project-configuration/source-maps';
 import { performance } from 'perf_hooks';
 import {
   getNxOutput,
diff --git a/libs/shared/nx-workspace-info/src/lib/workspace.ts b/libs/shared/nx-workspace-info/src/lib/workspace.ts
index cf75a569..1f632b03 100644
--- a/libs/shared/nx-workspace-info/src/lib/workspace.ts
+++ b/libs/shared/nx-workspace-info/src/lib/workspace.ts
@@ -17,7 +17,7 @@ import { getNxVersion } from './get-nx-version';
 import { getNxWorkspaceConfig } from './get-nx-workspace-config';
 import { getNxDaemonClient } from './get-nx-workspace-package';
 import type { ProjectGraph } from 'nx/src/devkit-exports';
-import type { ConfigurationSourceMaps } from 'nx/src/project-graph/utils/project-configuration-utils';
+import type { ConfigurationSourceMaps } from 'nx/src/project-graph/utils/project-configuration/source-maps';
 import { execSync } from 'child_process';
 
 const enum Status {
diff --git a/libs/shared/schema/src/normalize-schema.spec.ts b/libs/shared/schema/src/normalize-schema.spec.ts
index de11a56a..b2418c9d 100644
--- a/libs/shared/schema/src/normalize-schema.spec.ts
+++ b/libs/shared/schema/src/normalize-schema.spec.ts
@@ -25,7 +25,6 @@ describe('utils', () => {
     };
 
     it('should work with schema without any properties', async () => {
-      // @ts-expect-error absence of required property "properties" is needed to test failure resistance
       const r = await normalizeSchema({});
       expect(r).toEqual([]);
     });
diff --git a/libs/shared/schema/src/normalize-schema.ts b/libs/shared/schema/src/normalize-schema.ts
index 75f5bb8e..c761dfd1 100644
--- a/libs/shared/schema/src/normalize-schema.ts
+++ b/libs/shared/schema/src/normalize-schema.ts
@@ -163,13 +163,11 @@ function isFieldRequired(
 }
 
 function getItems(option: CliOption): { items: string[] } | undefined {
-  return (
-    option.items && {
-      items:
-        (option.items as ItemsWithEnum).enum ||
-        ((option.items as string[]).length && option.items),
-    }
-  );
+  if (!option.items) return undefined;
+  const enumItems = (option.items as ItemsWithEnum).enum;
+  if (enumItems) return { items: enumItems };
+  const stringItems = option.items as string[];
+  return stringItems.length ? { items: stringItems } : undefined;
 }
 
 function isLongFormXPrompt(xPrompt: XPrompt): xPrompt is LongFormXPrompt {
diff --git a/libs/shared/schema/src/schema.ts b/libs/shared/schema/src/schema.ts
index 6a30b631..9e990ec0 100644
--- a/libs/shared/schema/src/schema.ts
+++ b/libs/shared/schema/src/schema.ts
@@ -18,7 +18,9 @@ export type CliOption = {
   alias?: string;
   hidden?: boolean;
   deprecated?: boolean | string;
-} & OptionPropertyDescription;
+} & Omit<OptionPropertyDescription, 'items'> & {
+    items?: string[] | ItemsWithEnum;
+  };
 
 export interface Option extends CliOption {
   tooltip?: string;
diff --git a/libs/shared/types/src/lib/nx-workspace.ts b/libs/shared/types/src/lib/nx-workspace.ts
index b48338b4..7f646d8c 100644
--- a/libs/shared/types/src/lib/nx-workspace.ts
+++ b/libs/shared/types/src/lib/nx-workspace.ts
@@ -5,7 +5,7 @@ import type {
   ProjectFileMap,
   ProjectGraph,
 } from 'nx/src/devkit-exports';
-import type { ConfigurationSourceMaps } from 'nx/src/project-graph/utils/project-configuration-utils';
+import type { ConfigurationSourceMaps } from 'nx/src/project-graph/utils/project-configuration/source-maps';
 
 export type NxProjectConfiguration = ProjectConfiguration & {
   files?: { file: string }[];
diff --git a/libs/shared/watcher/src/lib/passive-daemon-watcher.ts b/libs/shared/watcher/src/lib/passive-daemon-watcher.ts
index edee858a..cfb27f70 100644
--- a/libs/shared/watcher/src/lib/passive-daemon-watcher.ts
+++ b/libs/shared/watcher/src/lib/passive-daemon-watcher.ts
@@ -5,7 +5,7 @@ import {
 import { Logger } from '@nx-console/shared-utils';
 import { randomUUID } from 'crypto';
 import type { ProjectGraph } from 'nx/src/config/project-graph';
-import type { ConfigurationSourceMaps } from 'nx/src/project-graph/utils/project-configuration-utils';
+import type { ConfigurationSourceMaps } from 'nx/src/project-graph/utils/project-configuration/source-maps';
 import { AnyEventObject, createActor, fromPromise, setup } from 'xstate';
 
 export type WatcherStatus = 'operational' | 'daemonDisabled' | 'notRunning';

Apply fix via Nx Cloud  Reject fix via Nx Cloud


Or Apply changes locally with:

npx nx-cloud apply-locally nul2-vLyY

Apply fix locally with your editor ↗   View interactive diff ↗



🎓 Learn more about Self-Healing CI on nx.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant