fix: optimize filter in build ts (#14528)

This commit is contained in:
Mikhail
2023-09-18 16:19:46 +02:00
committed by GitHub
parent 87fd468761
commit ed4d0edf2f
+4 -1
View File
@@ -43,8 +43,11 @@ packagesWithTs.forEach(({packageDir, pkg}) => {
const jestDependenciesOfPackage = Object.keys(pkg.dependencies || {})
.concat(Object.keys(pkg.devDependencies || {}))
.filter(dep => workspacesWithTs.has(dep))
.filter(dep => {
if (!workspacesWithTs.has(dep)) {
return false;
}
// nothing should depend on these
if (dep === 'jest-circus' || dep === 'jest-jasmine2') {
return false;