MCPcopy Create free account
hub / github.com/adobe/react-spectrum / ensureDir

Function ensureDir

packages/dev/mcp/s2/scripts/build-data.mjs:27–29  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

25const STYLE_PROPERTIES_TS = path.resolve(REPO_ROOT, 'packages/dev/s2-docs/src/styleProperties.ts');
26
27function ensureDir(p) {
28 fs.mkdirSync(p, {recursive: true});
29}
30
31function writeJson(file, data) {
32 ensureDir(path.dirname(file));

Callers 1

writeJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected