Skip to content
Snippets Groups Projects
Unverified Commit 1574baea authored by Jamie Magee's avatar Jamie Magee Committed by GitHub
Browse files

refactor: satisfy type checks for `array.includes` (#21834)

parent 541cb0cb
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,10 @@ export async function detectMonorepos( ...@@ -42,7 +42,10 @@ export async function detectMonorepos(
.filter(Boolean); .filter(Boolean);
p.deps?.forEach((dep) => { p.deps?.forEach((dep) => {
if (internalPackageNames.includes(dep.depName)) { if (
is.string(dep.depName) &&
internalPackageNames.includes(dep.depName)
) {
dep.isInternal = true; dep.isInternal = true;
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment