inLibrary
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))