Defines how version files are generated using either built-in templates (TypeScript, JSON, YAML) or custom Vento templates.
path: string
Path to the version file relative to project root
Template format (typescript, json, yaml, custom)
customTemplate: string
When using TemplateFormat.CUSTOM, provide a Vento template string. Template has access to all TemplateData properties and custom filters.
patterns: { [key: string]: RegExp | undefined; version?: RegExp; buildDate?: RegExp; gitCommit?: RegExp; }
Legacy patterns for extracting/updating version info
additionalExports: AdditionalExport[]
Define additional constants, classes, functions, or types to be included in the generated version file. This allows extending the built-in templates with project-specific exports without writing a full custom template.
extend: { prepend?: string; append?: string; }
Advanced option to prepend or append raw content to the generated file. Useful for adding imports, comments, or complex code that doesn't fit the additionalExports structure.