Skip to content

PromptScript API


Interface: CompileOptions

Defined in: browser-compiler/src/index.ts:77

Options for the standalone compile function.

Properties

bundledRegistry?

optional bundledRegistry: boolean

Defined in: browser-compiler/src/index.ts:86

Whether to include bundled registry files for

Inherit

support. Defaults to true.


customConventions?

optional customConventions: Record\<string, OutputConvention>

Defined in: browser-compiler/src/index.ts:94

Custom conventions for formatters.


envVars?

optional envVars: Record\<string, string>

Defined in: browser-compiler/src/index.ts:104

Simulated environment variables for interpolation. When provided, ${VAR} and ${VAR:-default} syntax in source files will be replaced with values from this map.


formatters?

optional formatters: (string | Formatter | { config?: TargetConfig; name: string; })[]

Defined in: browser-compiler/src/index.ts:81

Formatters to use. If not specified, all built-in formatters are used.


prettier?

optional prettier: PrettierMarkdownOptions

Defined in: browser-compiler/src/index.ts:98

Prettier formatting options for markdown output.


validator?

optional validator: ValidatorConfig

Defined in: browser-compiler/src/index.ts:90

Validator configuration.