chore: skip imports for the package itself, this works as expected in node

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-02-17 11:41:02 +01:00
parent b37fa77b00
commit b22d090dda
@@ -161,6 +161,11 @@ module.exports = {
return;
}
// We skip imports for the package itself
if (imp.packageName === localPkg.packageJson.name) {
return;
}
const modulePath = path.relative(localPkg.dir, filePath);
const expectedType = getExpectedDepType(
localPkg.packageJson,