Skip to main content

writeGeneratedFiles

@the-codegen-project/cliDocs


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

ParameterTypeDescription
filesGeneratedFile[]The generated files with path and content
basePathstringThe 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