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:
@@ -6,7 +6,6 @@ on:
|
||||
- '.github/workflows/cli.yml'
|
||||
- 'packages/cli/**'
|
||||
- 'packages/core/**'
|
||||
- 'scripts/**'
|
||||
- 'yarn.lock'
|
||||
|
||||
jobs:
|
||||
|
||||
@@ -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