checkLib
uses tcmts.studio.editableCodebase, which uses tcmts.share.servedCodebase, which uses process
What upgrading the library library (its mount, or its name) would do, as tcm lib upgrade --check says it: to its
package's newest release (an announced one's, the highest its author announced), what changed in its API.
import { editableCodebase, runTcm, tcmSaid } from "#codebase/tcmts/studio"; export async function checkLib(library: string): Promise<string> { const cb = editableCodebase(); return tcmSaid( await runTcm(cb.lay.root, ["lib", "upgrade", library, "--check"], { branch: true }), `tcm lib upgrade ${library} --check`, ); }