Skip to content

PromptScript API


Interface: CompileOptions

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

Options for the standalone compile function.

Properties

bundledRegistry?

optional bundledRegistry?: boolean

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

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

Custom conventions for formatters.


envVars?

optional envVars?: Record\<string, string>

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

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

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


prettier?

optional prettier?: PrettierMarkdownOptions

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

Prettier formatting options for markdown output.


projectRoot?

optional projectRoot?: string

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

Virtual project root containing .promptscript/scripts.


validator?

optional validator?: ValidatorConfig

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

Validator configuration.