scripts/check-type-dependencies: only verify type deps for packages that have been built
This commit is contained in:
@@ -69,7 +69,11 @@ async function main() {
|
||||
}
|
||||
|
||||
function shouldCheckTypes(pkg) {
|
||||
return !pkg.private && pkg.get('types');
|
||||
return (
|
||||
!pkg.private &&
|
||||
pkg.get('types') &&
|
||||
fs.existsSync(resolvePath(pkg.location, 'dist/index.d.ts'))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user