Skip to content

Support optional dependency integrity#421

Open
sdkennedy2 wants to merge 1 commit into
masterfrom
codex/optional-deps-integrity
Open

Support optional dependency integrity#421
sdkennedy2 wants to merge 1 commit into
masterfrom
codex/optional-deps-integrity

Conversation

@sdkennedy2

Copy link
Copy Markdown
Collaborator

Motivation

Published plugin packages currently sync required dependencies from internal workspaces, but the integrity command does not preserve whether a propagated dependency is optional. That makes it difficult to keep native, platform-specific packages optional when they are introduced by shared internal code.

Changes

  • Teach dependency integrity to read internal workspace optionalDependencies.
  • Propagate expected optional dependencies separately from required dependencies.
  • Keep required dependencies authoritative when the same package appears as required in one workspace and optional in another.
  • Reuse the same mismatch reporting/apply flow for both dependency sections.

QA Instructions

yarn cli integrity
git diff --check

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.

1 participant