appLog

tcmts.studio.appLog · #kccfqhpa · term · runs on the server

uses node:path

Where what an app the studio started says is kept (.tcm/studio/logs/<app>.log), if it's an app's name.

import type { Codebase } from "#codebase/tcmts/cli/codebase";
import path from "node:path";

export const appLog = (cb: Codebase, app: string): string | undefined =>
  /^[\w$][\w.$-]*$/.test(app)
    ? path.join(cb.lay.tcmDir, "studio", "logs", `${app}.log`)
    : undefined

uses

used by