chore(deps): prepare us to typescript 4

This commit is contained in:
Fredrik Adelöw
2020-08-28 13:45:11 +02:00
parent 6d752757c2
commit 82ba3169fe
2 changed files with 8 additions and 3 deletions
+5 -2
View File
@@ -86,8 +86,11 @@ function checkTypes(pkg) {
'utf8',
);
const deps = (typeDecl.match(/from '.*'/g) || [])
.map(match => match.replace(/from '(.*)'/, '$1'))
.filter(n => !n.startsWith('.'));
.map(match => match.replace(/^.*from '(.*)'.*$/, '$1'))
.filter(
n =>
!(n.startsWith('.') || n === pkg.name || n.startsWith(`${pkg.name}/`)),
);
const errors = [];
const typeDeps = [];