Skip to content

feat!: always package UI Kit resources, and move resource paths when upgrading to v10 - #229

Merged
tbinna merged 4 commits into
betafrom
feat/ui-kit-packaging
Nov 26, 2026
Merged

tbinna merged 4 commits into
betafrom
feat/ui-kit-packaging

Conversation

@tbinna

@tbinna tbinna commented Nov 26, 2026

Copy link
Copy Markdown
Member

Summary

UI Kit packaging is always on. The package executor pointed UI Kit resources at their build output folder unless uiKit2Packaging was set, and Forge cannot load a UI Kit resource from a folder. The option came with UI Kit 2 support in 2024 (#98), as an opt-in while that support was experimental. Today there is only one UI Kit, so the option and the "2" are gone.

 resources:
   - key: global-page          # Custom UI: unchanged
     path: resources/custom-ui-app
   - key: admin-page           # UI Kit
-    path: resources/ui-kit-app            # without uiKit2Packaging
+    path: resources/ui-kit-app/main.js    # always

Custom UI resources get the same path as before. Manifest resource paths also use forward slashes on Windows now; the old UI Kit path joined them with the platform separator.

v10 migrations, both tagged 10.0.0-beta.2 so that beta.1 users get them:

 update-10-0-0-remove-package-ts-config     (beta.0)
+update-10-0-0-remove-ui-kit-packaging-option   removes uiKit2Packaging from package
+                                               targets and target defaults
+update-10-0-0-move-resource-paths          moves manifest resources such as
+                                           path: src/assets to functions/assets
  • The option removal shares its code with the tsConfig migration, now in update-10-0-0/lib/remove-package-option.ts. Only nx-forge has uiKit2Packaging, so it is also removed from target defaults that do not name the executor, such as targetDefaults.package.
  • The resource path migration only changes a path on its own path: line and keeps comments and formatting. It leaves resources that name an Nx project alone, and keeps an edit only if the parsed manifest differs in exactly those paths. Otherwise it reports the manifest under next steps.

Docs: the UI Kit guide no longer calls UI Kit experimental or asks you to enable packaging. The v10 guide lists the new migration steps. The executor reference is generated from the schema and drops the option.

Evidence

  • Before: a UI Kit resource needed uiKit2Packaging: true in nx.json, as in nx-forge-examples. Upgrading that workspace left path: src/assets in the webpack app's manifest, and forge deploy failed.
    After: new specs, each seen failing first:
    • patch-manifest-yml.spec.ts: Custom UI → resources/custom-ui-app, UI Kit → resources/ui-kit-app/main.js, a static resource unchanged; fails without a UI Kit entry file.
    • remove-ui-kit-packaging-option.spec.ts: removes the option from package targets, executor target defaults, and a package target default without an executor.
    • move-resource-paths.spec.ts: moves src/assets and 'src', keeps comments, leaves a project name, reports a flow-style manifest.
  • pnpm nx run-many -t lint test build passes (133 nx-forge tests, 8 docs-tools tests), and so do the format check and the docs build.

Merge Danger

Door: one-way

Merging into beta publishes the next 10.0.0 beta to npm under the beta dist-tag, and a published version cannot be reused. The feat! commit adds a breaking-change note to the changelog; it stays within the 10.0.0 betas.

Blast Radius: beta-channel

Only @toolsplus/nx-forge@beta users get it. A config that still sets uiKit2Packaging keeps working, because the schema allows unknown options, and the migration removes it.

🤖 Generated with Claude Code

tbinna and others added 2 commits November 26, 2026 15:49
The package executor pointed UI Kit resources at their build output
folder unless uiKit2Packaging was set, and Forge cannot load a UI Kit
resource from a folder. The option dates from the time UI Kit 2 was new
and experimental. Custom UI resources get the same path either way.
Always point UI Kit resources at their entry file, and write resource
paths with forward slashes on Windows too.

A migration removes the option from package targets and target defaults.
The UI Kit guide no longer calls UI Kit support experimental.

BREAKING CHANGE: The package executor no longer has the uiKit2Packaging
option. It always packages UI Kit resources for Forge to load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… to v10

Paths in the manifest are relative to the artifact directory, so a
resource such as src/assets for Rovo prompt files still pointed at the
old build output folder after the migration, and the deploy failed. A
new migration moves such resource paths to the functions folder and
reports manifests that it cannot change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 83fc8746-acdf-4783-8ead-3aa44555e779

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

tbinna and others added 2 commits November 26, 2026 15:56
The package executor built the path of the artifact's manifest.yml with
joinPathFragments, which drops the Windows drive letter because it is
meant for paths in config files. Windows then looked for the manifest on
the current drive, so packaging failed when the artifact directory was
on another drive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since Forge CLI 16.0.0 is out, the Forge CLI 15.1.0 that the tests run
prints an update notice on stderr for every command. The lifecycle test
expects empty stderr, so it failed although every command succeeded. The
notice cannot be turned off, so drop it from stderr before the check,
and treat stderr that holds only whitespace as empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tbinna
tbinna force-pushed the feat/ui-kit-packaging branch from 417c060 to 6d874e3 Compare November 26, 2026 08:13
@tbinna
tbinna merged commit 75690f3 into beta Nov 26, 2026
7 checks passed
@tbinna
tbinna deleted the feat/ui-kit-packaging branch November 26, 2026 08:31
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 10.0.0-beta.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant