libraryLabel
What a library is, said briefly: its release, or its namespace's hash.
import type { LibraryEntry } from "#codebase/tcmts/cli/libraries"; import { shortHash } from "#codebase/tcmts/core/hash"; export const libraryLabel = (l: Pick<LibraryEntry, "namespace" | "release">): string => l.release ?? shortHash(l.namespace)