@aws/nx-plugin-mcp 1.3.9 → 1.4.0
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/bin/aws-nx-mcp.js +8 -8
- package/docs/get_started/upgrading.mdx +34 -0
- package/package.json +1 -1
package/bin/aws-nx-mcp.js
CHANGED
|
@@ -22642,14 +22642,14 @@ const NX_VERSION = {
|
|
|
22642
22642
|
"@middy/core": "7.9.2",
|
|
22643
22643
|
"@nxlv/python": "23.3.1",
|
|
22644
22644
|
"@nx-extend/terraform": "10.4.1",
|
|
22645
|
-
nx: "
|
|
22646
|
-
"@nx/devkit": "
|
|
22647
|
-
"@nx/js": "
|
|
22648
|
-
"@nx/react": "
|
|
22649
|
-
"@nx/vite": "
|
|
22650
|
-
"@nx/vitest": "
|
|
22651
|
-
"@nx/workspace": "
|
|
22652
|
-
"create-nx-workspace": "
|
|
22645
|
+
nx: "24.0.6",
|
|
22646
|
+
"@nx/devkit": "24.0.6",
|
|
22647
|
+
"@nx/js": "24.0.6",
|
|
22648
|
+
"@nx/react": "24.0.6",
|
|
22649
|
+
"@nx/vite": "24.0.6",
|
|
22650
|
+
"@nx/vitest": "24.0.6",
|
|
22651
|
+
"@nx/workspace": "24.0.6",
|
|
22652
|
+
"create-nx-workspace": "24.0.6",
|
|
22653
22653
|
"@swc-node/register": "1.12.1",
|
|
22654
22654
|
"@swc/core": "1.16.22",
|
|
22655
22655
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
@@ -127,6 +127,40 @@ To pick those changes up, compare your infrastructure against what today's gener
|
|
|
127
127
|
Some generators are marked as experimental — their guide page carries a banner saying so. Changes to these generators may ship without a migration to apply them to an existing workspace, so if you use one, check its guide after upgrading and reconcile any differences with your project yourself.
|
|
128
128
|
</Aside>
|
|
129
129
|
|
|
130
|
+
## Upgrading to Nx 24
|
|
131
|
+
|
|
132
|
+
The `@aws/nx-plugin` release that moves to Nx 24 also upgrades Nx in your workspace. Upgrade as you would for any other release:
|
|
133
|
+
|
|
134
|
+
<NxCommands commands={['migrate @aws/nx-plugin@latest']} />
|
|
135
|
+
|
|
136
|
+
<InstallCommand />
|
|
137
|
+
|
|
138
|
+
<NxCommands commands={['migrate --run-migrations']} />
|
|
139
|
+
|
|
140
|
+
`nx migrate` may ask whether to connect your workspace to Nx Cloud. Answer as you prefer; the upgrade works either way.
|
|
141
|
+
|
|
142
|
+
### If a generator says it needs Nx 24
|
|
143
|
+
|
|
144
|
+
If you upgraded the plugin by hand (for example with `pnpm add`), Nx stays on the older version and generators stop with a message like this:
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
@aws/nx-plugin <version> needs Nx 24, but this workspace has Nx 23.3.1. Upgrade Nx with: pnpm nx migrate 24.0.6 && pnpm install && pnpm nx migrate --run-migrations
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Run the command the message prints. It uses your package manager and the exact Nx version the plugin needs, for example:
|
|
151
|
+
|
|
152
|
+
<NxCommands commands={['migrate 24.0.6']} />
|
|
153
|
+
|
|
154
|
+
<InstallCommand />
|
|
155
|
+
|
|
156
|
+
<NxCommands commands={['migrate --run-migrations']} />
|
|
157
|
+
|
|
158
|
+
Running `nx migrate @aws/nx-plugin@latest` at this point may find nothing to update and leave Nx where it is, because the plugin is already the latest version.
|
|
159
|
+
|
|
160
|
+
<Aside type="caution" title="Hand upgrades skip the plugin's migrations">
|
|
161
|
+
Installing the plugin by hand skips its own migrations, and the command above runs only Nx's migrations. Prefer `nx migrate @aws/nx-plugin@latest` for plugin upgrades, so the plugin's migrations run too.
|
|
162
|
+
</Aside>
|
|
163
|
+
|
|
130
164
|
## Upgrading with an AI agent
|
|
131
165
|
|
|
132
166
|
The whole flow can be driven by an AI coding agent end to end — nothing blocks on an interactive terminal. When `nx migrate --run-migrations` runs from inside an agent, Nx detects this, skips the agentic consent prompt, and instead of spawning a nested agent it **defers** each prompt migration back to the agent driving the run:
|