chore(deps): prepare us to typescript 4
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user