property VersionFile.additionalExports

Additional exports to include in the generated version file

Examples

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})\`;
      }
    `
  }
]

Type

Usage

import { type VersionFile } from ".";