Skip to content
1 min read · 113 words

Function: primeGlobMatcher()

ts
function primeGlobMatcher(rules: Iterable<string>): Promise<void>;

Defined in: src/batteries/sandbox/node/fs_node.ts:75

Compile every glob-bearing rule through upstream's own globToRegex.

Parameters

ParameterTypeDescription
rulesIterable<string>Raw rule strings from the derived lists.

Returns

Promise<void>

Remarks

MUST be awaited before the evaluator is consulted, because the deep import is async while the evaluator is not. srtEnforcer does this for every rule in the derived lists immediately after capturing them — NOT createFsNode, which is synchronous and therefore cannot. An earlier comment here named createFsNode, which was simply false: nothing primed, so the synchronous fallback was the only path production ever took.