MCPcopy Create free account
hub / github.com/chakra-ui/panda / writeSpec

Function writeSpec

packages/node/src/spec.ts:18–24  ·  view source on GitHub ↗
(spec: SpecFile)

Source from the content-addressed store, hash-verified

16 const specDirPath = ctx.runtime.path.join(...specDir)
17
18 const writeSpec = async (spec: SpecFile) => {
19 await ctx.output.write({
20 id: `spec-${spec.type}` as ArtifactId,
21 dir: specDir,
22 files: [{ file: `${spec.type}.json`, code: JSON.stringify(spec, null, 2) }],
23 })
24 }
25
26 await Promise.all(specs.map(writeSpec))
27

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected