scripts/check-type-dependencies: only verify type deps for packages that have been built

This commit is contained in:
Patrik Oldsberg
2020-06-01 17:00:50 +02:00
parent fa24d73bba
commit 067d44181b
+5 -1
View File
@@ -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'))
);
}
/**