diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 07ed78743c..24ff2a734c 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -6,7 +6,6 @@ on: - '.github/workflows/cli.yml' - 'packages/cli/**' - 'packages/core/**' - - 'scripts/**' - 'yarn.lock' jobs: 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')) + ); } /**