Skip to content

chore: upgrade to Nx 24 and nx-forge 10 - #1

Open
tbinna wants to merge 1 commit into
mainfrom
chore/nx-24-nx-forge-10
Open

tbinna wants to merge 1 commit into
mainfrom
chore/nx-24-nx-forge-10

Conversation

@tbinna

@tbinna tbinna commented Nov 26, 2026

Copy link
Copy Markdown
Member

Summary

Four commits, one per step:

dda92fc  configure Nx AI agent skills for Claude Code
d140eef  migrate to Nx 24            (nx migrate)
b8cf66d  migrate to nx-forge 10      (nx-forge migrations + v10 guide build settings)
332f2a2  update the examples to current Nx Forge practices

The Forge apps now use manual packaging. The build writes the full bundle and package checks it:

 app:
+  package:
+    bundler: manual@2026
+    path: functions

The last commit cleans up the workspace:

 apps/
-├── nx-forge-app-esbuild-e2e/   # stub e2e projects
-├── nx-forge-app-webpack-e2e/
 ├── jira-global-page/           # getting-started webpack config, calls resolver via makeInvoke
 ├── modal-dialog/               # generated index.html, closes via view.close()
 ├── ui-kit-app/                 # calls resolver via makeInvoke
 ├── nx-forge-app-esbuild/       # tunnel port for modal-dialog, fixed dev manifestTransform
 └── nx-forge-app-webpack/       # prompts resource at functions/assets
 tsconfig.base.json              # moduleResolution bundler, strict: true, no TS 6 deprecations
 package.json                    # @forge/* latest majors, @forge/cli 16, no Vite/Vitest/Rollup
 .github/workflows/ci-main.yml   # Node 24, format:check + lint test build package

npm ci now works without --legacy-peer-deps. React stays on 18 for Forge.

Evidence

  • Before: npm ci needed --legacy-peer-deps, the jira-global-page test failed on the @forge/bridge import, and nx tunnel nx-forge-app-esbuild failed because modal-dialog had no tunnel port.
    After: a clean npm ci with no flags passes, and so does nx format:check. nx run-many -t lint test build package --skip-nx-cache runs 16 tasks and all succeed, with no lint warnings.
  • Both apps are deployed to the development environment. The Jira pages show the text returned by the resolver.

Merge Danger

Door: two-way

The example apps only. Revert the merge to roll back.

Blast Radius: small

People with local clones must run npm ci again. Forge CLI 16 also needs npx forge login once, because it no longer keeps credentials in the keychain.

🤖 Generated with Claude Code

- Run the Nx 24 migrations with nx migrate.
- Run the nx-forge 10 migrations (up to 10.0.0-beta.4) and apply the
  build settings for source maps and NODE_ENV from the v10 upgrade guide.
  UI Kit resources are now always packaged, so the uiKit2Packaging
  option is gone.
- Configure the Nx AI agent skills for Claude Code and Codex. AGENTS.md
  holds the agent instructions and CLAUDE.md is a symlink to it.
- Resolve peer dependency conflicts so npm ci works without
  --legacy-peer-deps, and update the @forge packages to their latest
  majors.
- Remove the stub e2e projects and unused Vite, Vitest and Rollup tooling.
- Run format check, lint, test, build and package in CI on Node 24.
- Move the TypeScript config off options deprecated in TS 6 and enable
  strict mode in the base tsconfig.
- Fix the esbuild app's tunnel config and development manifest transform.
- Use the getting started webpack config for the Custom UI projects and
  clean the output folder on each build.
- Replace Emotion with the Atlaskit CSS reset in the Custom UI projects
  and drop the unsafe-inline style permission it needed.
- Call the app resolver from the example UIs with makeInvoke.
- Use the size prop instead of the deprecated as prop on the UI Kit
  heading.
- Point the Rovo prompts resource at the function bundle assets.
- Install the Forge CLI as a dev dependency and document the inferred
  Forge targets in the README.
- Format with Prettier 3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tbinna
tbinna force-pushed the chore/nx-24-nx-forge-10 branch from 332f2a2 to f4c9fc3 Compare December 1, 2026 10:10
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