MCPcopy Index your code
hub / github.com/tinyplex/tinybase / syncPublishedDocShots

Function syncPublishedDocShots

site/shots.ts:45–51  ·  view source on GitHub ↗
(outDir: string)

Source from the content-addressed store, hash-verified

43};
44
45const syncPublishedDocShots = (outDir: string): void => {
46 const shotDir = join(outDir, DOC_SHOT_DIR);
47 rmSync(shotDir, {force: true, recursive: true});
48 if (existsSync(DOC_SHOT_SNAPSHOTS_DIR)) {
49 cpSync(DOC_SHOT_SNAPSHOTS_DIR, shotDir, {recursive: true});
50 }
51};
52
53const rewritePublishedDocShots = (outDir: string): void => {
54 const refs = getDocShotRefs(outDir);

Callers 1

Calls 1

joinFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…