From fd7c93db6c45988b23f84ad07b8cf48e112f3551 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 31 Aug 2020 11:12:00 +0200 Subject: [PATCH] Revert "chore(deps): prepare us to typescript 4" This reverts commit 82ba3169fe1563f28bc5c2b57e236411ba57732b. --- scripts/check-type-dependencies.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 = [];