writeGeneratedFiles
@the-codegen-project/cli • Docs
Home / writeGeneratedFiles
Function: writeGeneratedFiles()
function writeGeneratedFiles(files, basePath): Promise<string[]>
Write generated files to disk. This is the I/O boundary - called by CLI after pure generation.
Parameters
| Parameter | Type | Description |
|---|---|---|
files | GeneratedFile[] | The generated files with path and content |
basePath | string | The base path to resolve relative paths from |
Returns
Promise<string[]>
Array of absolute paths that were written
Defined in
src/codegen/output/index.ts:27