diff --git a/scripts/check-type-dependencies.js b/scripts/check-type-dependencies.js index 2e53022937..6ee4626a21 100755 --- a/scripts/check-type-dependencies.js +++ b/scripts/check-type-dependencies.js @@ -86,11 +86,8 @@ function checkTypes(pkg) { 'utf8', ); const deps = (typeDecl.match(/from '.*'/g) || []) - .map(match => match.replace(/^.*from '(.*)'.*$/, '$1')) - .filter( - n => - !(n.startsWith('.') || n === pkg.name || n.startsWith(`${pkg.name}/`)), - ); + .map(match => match.replace(/from '(.*)'/, '$1')) + .filter(n => !n.startsWith('.')); const errors = []; const typeDeps = [];