keptIntoFile

tcmts.studio.keptIntoFile · #kfr6vmsf · term · runs on the server

uses node:path

Where the studio keeps, for the files kept as written it wrote into scratch files to edit (Edit on their page), the name each goes back to (a Markdown file's first line says so too): .tcm/studio/kept.json, by the file's path.

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

export const keptIntoFile = (cb: Codebase): string =>
  path.join(cb.lay.tcmDir, "studio", "kept.json")

uses

used by