Skip to content

Commit

Permalink
chore(constraints): move out constant objet construction from functio…
Browse files Browse the repository at this point in the history
…n body
  • Loading branch information
legobeat committed Oct 9, 2024
1 parent 84430b9 commit a858d6e
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 @@ -725,9 +725,6 @@ function getInconsistentDependenciesAndDevDependencies(
dependencyIdent,
dependenciesByRange,
) {
const ALLOWED_INCONSISTENT_DEPENDENCIES = Object.entries({
'@metamask/rpc-errors': ['^7.0.0'],
});
for (const [
allowedPackage,
ignoredRange,
Expand All @@ -743,6 +740,10 @@ function getInconsistentDependenciesAndDevDependencies(
return dependenciesByRange;
}

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

/**
* Expect that all version ranges in `dependencies` and `devDependencies` for
* the same dependency across the entire monorepo are the same. As it is
Expand Down

0 comments on commit a858d6e

Please sign in to comment.