Conversation
…ction deps Add a yarn constraint that errors when a published (`@metamask/`) package lists a private (`@ocap/`) workspace package in production dependencies (`dependencies` or `peerDependencies`) via the `workspace:` protocol. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2 tasks
github-merge-queue bot
pushed a commit
that referenced
this pull request
Mar 4, 2026
…ction deps (#865) ## Summary - Add a yarn constraint that prevents published (`@metamask/`) packages from listing private (i.e., practically speaking, `@ocap/`) workspace packages in production dependencies (`dependencies` or `peerDependencies`) via the `workspace:` protocol - No current violations exist; this is a guardrail against future mistakes ## Test plan - [x] `yarn constraints` passes with no errors - [x] Temporarily add a private `@ocap/` package to a public package's `dependencies` with `workspace:^` and verify the constraint catches it: see #867 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk: adds a Yarn constraints guardrail only, and it triggers only on invalid dependency declarations for published packages. > > **Overview** > Adds a new Yarn constraint that **fails `yarn constraints`** when a non-private (published) workspace declares a `workspace:` protocol dependency on a private workspace in production dependency sections (anything other than `devDependencies`, e.g. `dependencies`/`peerDependencies`). > > Implements `expectNoPrivateWorkspaceProductionDependencies` and runs it for all non-private child workspaces, emitting a clear error message naming the offending package and dependency type. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 782e72c. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
No description provided.