Skip to content

Commit c4c9849

Browse files
authored
fix: optimize filter in build ts (#14528)
1 parent b06dc2a commit c4c9849

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/buildTs.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ packagesWithTs.forEach(({packageDir, pkg}) => {
4343

4444
const jestDependenciesOfPackage = Object.keys(pkg.dependencies || {})
4545
.concat(Object.keys(pkg.devDependencies || {}))
46-
.filter(dep => workspacesWithTs.has(dep))
4746
.filter(dep => {
47+
if (!workspacesWithTs.has(dep)) {
48+
return false;
49+
}
50+
4851
// nothing should depend on these
4952
if (dep === 'jest-circus' || dep === 'jest-jasmine2') {
5053
return false;

0 commit comments

Comments
 (0)