Speed up OpenUI CLI dependency installs - #798
Merged
zahlekhan merged 13 commits intoJul 22, 2026
Merged
Conversation
…/accelerate-cli-installs # Conflicts: # packages/openui-cli/package.json
zahlekhan
marked this pull request as ready for review
July 22, 2026 09:27
abhithesys
approved these changes
Jul 22, 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
npm ci --prefer-offline --no-audit --no-fund --progress=falselatestduring every scaffold@openuidev/clifrom0.1.7to0.1.8Why
The npm scaffold path currently starts from an unlocked manifest, resolves several
latestdependencies, performs an audit, and writes a new lockfile. That makes fresh installs materially slower than necessary and allows generated dependency trees to drift independently of the CLI release.The updated path installs a release-tested, deterministic tree. Install-time auditing is skipped for speed; users can still run
npm auditexplicitly.Benchmarks
Before/after npm timings used fresh template copies. Cold runs used empty isolated npm caches; warm runs used populated caches with fresh project directories.
An additional cold comparison used the updated templates, Node 24.2.0, npm 11.3.0, pnpm 10.33.0, and separate empty npm caches/pnpm stores:
These are single-run local measurements, so cold network timing can vary.
Validation
pnpm --filter @openuidev/cli buildpnpm --filter @openuidev/cli lint:checkpnpm --filter @openuidev/cli format:checknpm pack --dry-run --ignore-scripts(220.3 kB package tarball)