property VersionFile.extend

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.

Examples

Example 1

extend: {
  prepend: "// This file is auto-generated, do not edit manually\n",
  append: "\n// End of generated content"
}

Properties

optional
prepend: string

Content to add at the beginning of the file

optional
append: string

Content to add at the end of the file

Usage

import { type VersionFile } from ".";