shippedLibrariesDir
uses process
Where the libraries tcm ships are, for the examples' setups (tcm lib add tcm react) run with the tcm of its
codebase, which has none beside it: as tcm test gives its suites (TCM_SHIPPED_LIBRARIES), packed once per release.
import { Codebase } from "#codebase/tcmts/cli/codebase"; import { suiteLibraries } from "#codebase/tcmts/cli/suites"; import { codebaseDir } from "#codebase/tcmts/dev"; export function shippedLibrariesDir(): string { return ( process.env.TCM_SHIPPED_LIBRARIES ?? suiteLibraries(Codebase.find(codebaseDir()), "tcmts") ?? "" ); }