fix(ci): exclude dist/ test files from shard count

This commit is contained in:
gsxdsm
2026-05-13 17:58:28 -07:00
parent 410e2a935e
commit 35a6d3a81d

View File

@@ -72,6 +72,7 @@ export function countPackageTestFiles(packageDir, { projectRoot = process.cwd()
return globSync("**/__tests__/**/*.test.{ts,tsx,mjs}", {
cwd: packageRoot,
nodir: true,
exclude: (p) => p.startsWith("dist/") || p.includes("/dist/"),
}).length;
}