removeLib
uses tcmts.studio.editableCodebase, which uses tcmts.share.servedCodebase, which uses process
Remove the library library, as tcm lib rm does: its names, and its entry in the record beside it. What it said.
import { editableCodebase, runTcm, tcmSaid } from "#codebase/tcmts/studio"; export async function removeLib(library: string): Promise<string> { const cb = editableCodebase(); return tcmSaid( await runTcm(cb.lay.root, ["lib", "rm", library], { branch: true }), `tcm lib rm ${library}`, ); }