upgradeLib
uses tcmts.studio.editableCodebase, which uses tcmts.share.servedCodebase, which uses process
Upgrade the library library, as tcm lib upgrade does: one update, what changed in its API first, then the code
using it follows (what doesn't typecheck goes to Needs fixing). What it said.
import { editableCodebase, runTcm, tcmSaid } from "#codebase/tcmts/studio"; export async function upgradeLib(library: string): Promise<string> { const cb = editableCodebase(); return tcmSaid( await runTcm(cb.lay.root, ["lib", "upgrade", library], { branch: true }), `tcm lib upgrade ${library}`, ); }