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.
Example 1
Example 1
additionalExports: [ { name: "API_ENDPOINTS", type: "const", value: { users: "/api/users", data: "/api/data" }, description: "Available API endpoints" }, { name: "VersionUtils", type: "class", content: ` static getFullVersion(): string { return \`\${VERSION} (\${BUILD_INFO.gitCommit})\`; } ` } ]