forBundle static method
The files binding bundle reads, as they are now, found as
WayfinderProjectConfig.bind finds them: configPath with the
wayfinder.lock beside it; or else each wayfinder.json path the
search above the bundle, never above projectRoot, looked at, closest
first, ending with the one it found and the wayfinder.lock beside
it. The paths before the one it found are absent, and one that appears
would bind the bundle instead. Reads no configuration's content.
Implementation
static Future<KnowledgeProjectFiles> forBundle(
String bundle, {
String? configPath,
String? projectRoot,
}) async {
if (configPath != null) return read(configPath);
return _of((await _bound(bundle, projectRoot)).paths);
}