`states` with every `**` that can match no folder at all stepped over.
(glob: GlobSegment[], states: Set<number>)
| 1040 | |
| 1041 | /** `states` with every `**` that can match no folder at all stepped over. */ |
| 1042 | function globClosure(glob: GlobSegment[], states: Set<number>): Set<number> { |
| 1043 | for (const i of [...states]) { |
| 1044 | for (let j = i; glob[j]?.globstar; j++) states.add(j + 1); |
| 1045 | } |
| 1046 | return states; |
| 1047 | } |
| 1048 | |
| 1049 | /** Read the `name` field from a member directory's package.json. */ |
| 1050 | function readPackageName(dirAbs: string): string | null { |
no test coverage detected