Skip to content

PromptScript API


Interface: CompileOptions

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

Options for the standalone compile function.

Properties

bundledRegistry?

optional bundledRegistry?: boolean

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

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:96

Custom conventions for formatters.


envVars?

optional envVars?: Record\<string, string>

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

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:83

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


prettier?

optional prettier?: PrettierMarkdownOptions

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

Prettier formatting options for markdown output.


validator?

optional validator?: ValidatorConfig

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

Validator configuration.