Merge pull request #1096 from spotify/rugvip/tdfix

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:25:56 +02:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
-1
View File
@@ -6,7 +6,6 @@ on:
- '.github/workflows/cli.yml'
- 'packages/cli/**'
- 'packages/core/**'
- 'scripts/**'
- 'yarn.lock'
jobs:
+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'))
);
}
/**