Repository navigation
[CLI] Name the theme package on import and teach import in the theme list - #7154
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
Contributor
PR Analysis Report
No new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Visual Regression23 of 436 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 3 more. Generated by PR Enrichment workflow | View full report |
josephfarina
force-pushed
the
josephfarina/theme-import-followups
branch
from
October 8, 2026 05:30
847f838 to
435f9a3
Compare
josephfarina
marked this pull request as ready for review
October 8, 2026 07:27
3 tasks done
cixzhang
added a commit
that referenced
this pull request
Oct 8, 2026
cixzhang
added a commit
that referenced
this pull request
Oct 8, 2026
…lease classifier (#7195) * ci(changesets): check PR changeset coverage with the release classifier * test(changesets): red arms for #7125 and #7154 coverage gaps * perf(changesets): batch tree reads; ignore fixed-group co-bumps * ci(changesets): resolve composed typedefs; attribute only distinctive ids by mention; wire lint; document * ci(changesets): release audit accepts fix-up Changesets citing the PR * style: prettier * ci(changesets): classify on both sides, name fields by full identity, trim * ci: check the generated CLI README on pull requests
This branch was successfully deployed
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.
User need
Theme import shipped with a few loose ends. An app using
theme add --importcouldn't see which package owns the theme it just added. The theme list still taught the deprecated copy form as the way to get a theme. Monorepo apps had no coverage for doctor's theme lookup.What this does
theme add <slug> --importnames the npm package that owns the added theme. JSON carriespackagein the envelope, directly aftertype, and text prints apackage:line, the same way other results about one artifact do. A local theme has no package, so its result has none.theme removeandtheme useare unchanged. Plaintheme add(the deprecated copy) keeps its released result exactly.theme add --listkeeps its JSON. Its text now namestheme add <slug> --importto use a theme andtheme eject <slug> [target-path]to fork one, instead of the deprecated copy form.node_modulesis hoisted to the workspace root. Doctor readsastryx.themefrom the app's ownpackage.jsonand reports it as active, not as an unwired theme.packages/cli/api/index.mjs. A runtime module, including internal helpers such as the recorded-theme resolver, can't reach the public API without a named export that the check can see. Mutation tests cover it.theme add --importand resets its mocked project after each integration case.Compatibility
packageontheme.appfromtheme add --import. No released field changes.theme add --list --jsonis byte-identical.theme add --listusage lines and the newpackage:line on import change.Testing
packageor its text line fails the new provenance case. Addingexport * from './theme/theme.mjs'to the API entry fails the structure check.