currentBuild

tcmts.cli.web.currentBuild · #7tw7b3r3 · term · runs on the server

uses tcmts.cli.web.buildKey, which uses node:crypto

The build an app's name points to now (buildKey), without planning it.

import type { Codebase } from "#codebase/tcmts/cli/codebase";
import { buildKey, pwaOf } from "#codebase/tcmts/cli/web";

export function currentBuild(cb: Codebase, appName: string): string {
  return buildKey(cb.lookupOne(appName, "value"), pwaOf(cb, appName));
}

uses

used by