(base, files)
| 156 | } |
| 157 | |
| 158 | function shouldRunAllWorkspaces(base, files) { |
| 159 | if (!base || /^0+$/.test(base) || files.length === 0) { |
| 160 | return true |
| 161 | } |
| 162 | |
| 163 | return files.some((file) => |
| 164 | globalChangePatterns.some((pattern) => matchesPattern(file, pattern)) |
| 165 | ) |
| 166 | } |
| 167 | |
| 168 | function matchesPattern(file, pattern) { |
| 169 | if (pattern.endsWith(`/**`)) { |
no test coverage detected