MCPcopy Index your code
hub / github.com/code-forge-io/react-router-devtools / resetDir

Function resetDir

docs/scripts/generate-docs.ts:29–29  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

27
28const ensureDir = (p: string) => mkdirSync(p, { recursive: true });
29const resetDir = (p: string) => { if (existsSync(p)) rmSync(p, { recursive: true, force: true }); ensureDir(p); };
30
31const contentDir = "content";
32const outputDir = "generated-docs";

Callers 1

buildDocsFunction · 0.85

Calls 1

ensureDirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…