recordFor

tcmts.cli.libraries.recordFor · #2ucrchvx · term · runs anywhere

A record's path, for a mount: the libraries file beside it.

import { RECORD } from "#codebase/tcmts/cli/libraries";

export const recordFor = (mount: string): string =>
  mount.includes(".") ? `${mount.slice(0, mount.lastIndexOf("."))}.${RECORD}` : RECORD

uses

used by