MCPcopy Create free account
hub / github.com/arktypeio/arktype / writeFiles

Function writeFiles

ark/aot/cli.ts:159–164  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

157}
158
159const writeFiles = (files: Record<string, string>) => {
160 for (const path in files) {
161 mkdirSync(dirname(path), { recursive: true })
162 writeFileSync(path, files[path])
163 }
164}
165
166const run = <result>(build: () => result): result => {
167 try {

Callers 2

declareFunction · 0.85
cli.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected