From 067d44181bc1d907514c2aa763d48b52e7f50782 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 1 Jun 2020 17:00:50 +0200 Subject: [PATCH] scripts/check-type-dependencies: only verify type deps for packages that have been built --- scripts/check-type-dependencies.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/check-type-dependencies.js b/scripts/check-type-dependencies.js index 5b7daa13d2..6ee4626a21 100755 --- a/scripts/check-type-dependencies.js +++ b/scripts/check-type-dependencies.js @@ -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')) + ); } /**