chore: fixes #4174 by removing loose ^ selector in internal dependencies #4180
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.
Description
Updates all internal version dependencies to use strict versions rather than the looser
^
selector, this is to avoid unexpected installation of newer versions of transitive dependencies.Related issue(s)
#4174
Motivation and context
When installing a specific version of spectrum-web-components packages we would expect all internal dependencies to be the same requested version. This helps us also avoid unexpected duplication of mismatched versions.
How has this been tested?
The effect of this change was tested in a separate repository by using
pnpmfile.js
to rewrite thedependencies
fields of SWC components as they installed. This fixed all transitive dependency mismatched errors.Screenshots (if appropriate)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.