scratchDir

tcmts.studio.scratchDir · #yddof4d6 · term · runs anywhere

Where the codebase's scratch files are: beside it, or in its session's directory when it's served for a session (tcm dev with TCM_BRANCH), as the command line has them.

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

export const scratchDir = (cb: Codebase): string => cb.sessionDir ?? cb.lay.root

uses

used by