Skip to content

fix(react-cap-theme): declare missing runtime deps#664

Merged
pixel-perfectionist merged 2 commits into
mainfrom
olkatruk/react-cap-theme-deps
Jul 1, 2026
Merged

fix(react-cap-theme): declare missing runtime deps#664
pixel-perfectionist merged 2 commits into
mainfrom
olkatruk/react-cap-theme-deps

Conversation

@pixel-perfectionist

Copy link
Copy Markdown
Member

react-cap-theme imported 28 packages but declared none of them, so it only worked via workspace hoisting and broke under pnpm.

declared them (griffel/tokens/@FluentUI building blocks as deps, react-icons as peer) and added package.json to the lint patterns so dependency-checks catches this next time.

react-cap-theme imported 28 external packages (@fluentui/* building
blocks, @griffel/react, @fluentui/tokens) but declared none of them,
relying on workspace-root hoisting. Published builds therefore failed
to resolve those imports under strict installers (e.g. pnpm).

- Declare the building-block packages as dependencies and
  @fluentui/react-icons as a peer, using the umbrella's ranges aligned
  to the workspace's shared version groups.
- Add package.json to lintFilePatterns so @nx/dependency-checks runs
  for this package and prevents regressions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pixel-perfectionist pixel-perfectionist requested a review from a team as a code owner July 1, 2026 01:22
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pixel-perfectionist pixel-perfectionist requested a review from a team as a code owner July 1, 2026 01:26
@pixel-perfectionist pixel-perfectionist merged commit f56023b into main Jul 1, 2026
9 checks passed
@pixel-perfectionist pixel-perfectionist deleted the olkatruk/react-cap-theme-deps branch July 1, 2026 18:42
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.

3 participants