Skip to content

refactor(examples): make applications standalone - #1076

Merged
AbhinRustagi merged 15 commits into
mainfrom
refactor/isolate-example-dependencies
Aug 26, 2026
Merged

refactor(examples): make applications standalone#1076
AbhinRustagi merged 15 commits into
mainfrom
refactor/isolate-example-dependencies

Conversation

@vishxrad

@vishxrad vishxrad commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Context

#1073 was merged into main. #1074 was then merged into its temporary stack base rather than main, so this pull request reapplies and extends those changes on current main.

Summary

  • remove examples from the root pnpm workspace so a root pnpm install no longer installs every example
  • make all 18 JavaScript applications standalone, each with its own manifest, dependency tree, scripts, and canonical pnpm-lock.yaml
  • pin direct @openuidev/* dependencies to exact published versions instead of inheriting workspace packages or catalogs
  • keep repository maintenance centralized through examples:install, examples:update, and examples:verify
  • add a manually triggered Update example OpenUI packages workflow that updates direct OpenUI entries in dependencies and devDependencies, refreshes each affected lockfile, verifies all examples, and creates or updates one pull request using native git and gh
  • keep pnpm as the documented default while allowing npm and Bun to install the standalone applications from the same package.json; their local lockfiles remain ignored
  • keep application scripts package-manager-neutral and retain explicit Next.js roots where nested examples must not resolve the ancestor workspace
  • remove redundant FastAPI and React Native parent manifests because their actual JavaScript applications install independently

Post-merge workflow smoke test

The HTML Artifact example intentionally pins @openuidev/react-ui to 0.13.8 while 0.13.9 is currently published as latest. The older patch installs and builds successfully.

After this pull request is merged:

  1. Manually run the Update example OpenUI packages workflow.
  2. Confirm it updates HTML Artifact to 0.13.9 or the latest published version.
  3. Confirm it refreshes the example lockfile, verifies all examples, and opens a pull request from automation/update-example-openui-packages.

The stale pin is deliberate test data and should be removed by that generated pull request rather than manually in this one.

Verification

  • root pnpm install --frozen-lockfile passes with a 16-project scope and does not install examples
  • frozen pnpm installation passes independently for all 18 applications
  • all 18 credential-free example verification contracts pass
  • npm dependency resolution passes for all 18 manifests in clean standalone directories
  • all direct @openuidev/* dependencies are exact versions; no example manifest uses workspace: or catalog: protocols
  • HTML Artifact installs and builds with the deliberately stale @openuidev/react-ui@0.13.8 package
  • formatting and git diff --check pass

Supersedes the changes merged into the temporary stack base by #1074.

@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openui-docs Ready Ready Preview Aug 26, 2026 11:51am

Request Review

@vishxrad vishxrad changed the title refactor(examples): isolate published dependencies refactor(examples): make applications standalone Aug 26, 2026
@AbhinRustagi
AbhinRustagi merged commit c3608cb into main Aug 26, 2026
4 checks passed
@AbhinRustagi
AbhinRustagi deleted the refactor/isolate-example-dependencies branch August 26, 2026 12:02
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.

2 participants