mirror of
https://github.com/hanzoai/jest.git
synced 2026-09-24 16:59:57 +00:00
fix: optimize filter in build ts (#14528)
This commit is contained in:
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user