Skip to content

Commit

Permalink
feat: allow * use in onlyWarnsForInMonorepoPackagesDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Jul 5, 2023
1 parent 7d63808 commit 350e62a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/definitions/check-package-with-workspaces.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion dist/index-node16.mjs
Expand Up @@ -980,7 +980,10 @@ function createCheckPackageWithWorkspaces(createCheckPackageOptions = {}) {
...onlyWarnsForInMonorepoPackages['*'],
...onlyWarnsForInMonorepoPackages[checkSubPackage.pkg.name]
} : undefined,
onlyWarnsForInDependencies: onlyWarnsForInMonorepoPackagesDependencies[checkSubPackage.pkg.name],
onlyWarnsForInDependencies: {
...onlyWarnsForInMonorepoPackagesDependencies['*'],
...onlyWarnsForInMonorepoPackagesDependencies[checkSubPackage.pkg.name]
},
internalExactVersionsIgnore: [...checksWorkspaces.keys()],
checkResolutionMessage
});
Expand Down
2 changes: 1 addition & 1 deletion dist/index-node16.mjs.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/check-package-with-workspaces.ts
Expand Up @@ -164,10 +164,12 @@ export function createCheckPackageWithWorkspaces(
...onlyWarnsForInMonorepoPackages[checkSubPackage.pkg.name],
}
: undefined,
onlyWarnsForInDependencies:
onlyWarnsForInMonorepoPackagesDependencies[
onlyWarnsForInDependencies: {
...onlyWarnsForInMonorepoPackagesDependencies['*'],
...onlyWarnsForInMonorepoPackagesDependencies[
checkSubPackage.pkg.name
],
},
internalExactVersionsIgnore: [...checksWorkspaces.keys()],
checkResolutionMessage,
});
Expand Down

0 comments on commit 350e62a

Please sign in to comment.