@yahoo/uds-create-config 5.77.1 → 5.77.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -618,13 +618,20 @@ function directivesTakingNothing(config) {
618
618
  const source = config.liveSourceFor(slug);
619
619
  if (!source) continue;
620
620
  const reached = /* @__PURE__ */ new Map();
621
- const reaches = (kind, path) => {
621
+ const closure = (kind) => {
622
622
  let paths = reached.get(kind);
623
623
  if (!paths) {
624
624
  paths = new Set(config.sourceClosure(slug, kind).map(pathOf));
625
625
  reached.set(kind, paths);
626
626
  }
627
- return paths.has(path);
627
+ return paths;
628
+ };
629
+ const reaches = (kind, path) => {
630
+ const paths = closure(kind);
631
+ if (paths.has(path)) return true;
632
+ const prefix = `${path}/`;
633
+ for (const held of paths) if (held.startsWith(prefix)) return true;
634
+ return false;
628
635
  };
629
636
  for (const { kind, accessor, path } of config.sourceDirectives(slug)) {
630
637
  if (kind === void 0) continue;