Skip to content

Commit

Permalink
chore: allow exception for @metamask/rpc-errors@^7.0.0 inconsistent d…
Browse files Browse the repository at this point in the history
…ependency range

chore(constraints): move out constant object construction from function body
  • Loading branch information
legobeat committed Oct 9, 2024
1 parent d9b7eb6 commit d168983
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions yarn.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,10 @@ function expectControllerDependenciesListedAsPeerDependencies(
}
}

const ALLOWED_INCONSISTENT_DEPENDENCIES = Object.entries({
'@metamask/rpc-errors': ['^7.0.0'],
});

/**
* Filter out dependency ranges which are not to be considered in `expectConsistentDependenciesAndDevDependencies`.
*
Expand All @@ -725,9 +729,6 @@ function getInconsistentDependenciesAndDevDependencies(
dependencyIdent,
dependenciesByRange,
) {
const ALLOWED_INCONSISTENT_DEPENDENCIES = Object.entries({
// '@metamask/foo': ['^1.0.0'],
});
for (const [
allowedPackage,
ignoredRange,
Expand Down

0 comments on commit d168983

Please sign in to comment.