diff --git a/yarn.config.cjs b/yarn.config.cjs index f06fdd6ee1b..e46e66bb2d8 100644 --- a/yarn.config.cjs +++ b/yarn.config.cjs @@ -725,9 +725,6 @@ function getInconsistentDependenciesAndDevDependencies( dependencyIdent, dependenciesByRange, ) { - const ALLOWED_INCONSISTENT_DEPENDENCIES = Object.entries({ - '@metamask/rpc-errors': ['^7.0.0'], - }); for (const [ allowedPackage, ignoredRange, @@ -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