enum TemplateFormat

Supported template formats for version file generation

Examples

Example 1

const config: VersionFile = {
  path: "./version.ts",
  template: TemplateFormat.TYPESCRIPT
};

Members

CUSTOM = "custom"

Custom template string using Vento syntax

JSON = "json"

JSON format suitable for package.json-style version tracking

TYPESCRIPT = "typescript"

TypeScript version file with const exports and type definitions

YAML = "yaml"

YAML format for configuration-style version tracking

Usage

import { TemplateFormat } from ".";