(spec: SpecFile)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected