inLibrary

tcmts.cli.libraries.inLibrary · #vaxwnndk · term · runs anywhere

Whether path is one of these libraries' names.

import { within } from "#codebase/tcmts/cli/libraries";
import type { Library } from "#codebase/tcmts/cli/libraries";

export const inLibrary = (libraries: Library[], path: string): boolean =>
  libraries.some((l) => within(path, l.path))

uses

used by