Repository navigation
feat!: always package UI Kit resources, and move resource paths when upgrading to v10 - #229
Merged
Merged
Conversation
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>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
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
force-pushed
the
feat/ui-kit-packaging
branch
from
November 26, 2026 08:13
417c060 to
6d874e3
Compare
Contributor
|
🎉 This PR is included in version 10.0.0-beta.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
UI Kit packaging is always on. The
packageexecutor pointed UI Kit resources at their build output folder unlessuiKit2Packagingwas 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 # alwaysCustom 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.2so that beta.1 users get them:tsConfigmigration, now inupdate-10-0-0/lib/remove-package-option.ts. Only nx-forge hasuiKit2Packaging, so it is also removed from target defaults that do not name the executor, such astargetDefaults.package.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
uiKit2Packaging: trueinnx.json, as in nx-forge-examples. Upgrading that workspace leftpath: src/assetsin the webpack app's manifest, andforge deployfailed.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 apackagetarget default without an executor.move-resource-paths.spec.ts: movessrc/assetsand'src', keeps comments, leaves a project name, reports a flow-style manifest.pnpm nx run-many -t lint test buildpasses (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
betapublishes the next10.0.0beta to npm under thebetadist-tag, and a published version cannot be reused. Thefeat!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@betausers get it. A config that still setsuiKit2Packagingkeeps working, because the schema allows unknown options, and the migration removes it.🤖 Generated with Claude Code