Skip to content

PromptScript API


Interface: CompilerOptions

Defined in: compiler/src/types.ts:99

Options for the compiler.

Properties

customConventions?

optional customConventions?: Record\<string, OutputConvention>

Defined in: compiler/src/types.ts:107

Custom convention definitions


formatters

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

Defined in: compiler/src/types.ts:105

Formatters to use (names, instances, or configs)


ignoreHashes?

optional ignoreHashes?: boolean

Defined in: compiler/src/types.ts:119

Skip reference integrity hash verification


logger?

optional logger?: Logger

Defined in: compiler/src/types.ts:111

Logger for verbose/debug output


prettier?

optional prettier?: PrettierMarkdownOptions

Defined in: compiler/src/types.ts:109

Prettier formatting options for markdown output


resolver

resolver: ResolverOptions

Defined in: compiler/src/types.ts:101

Resolver configuration


skillContent?

optional skillContent?: string

Defined in: compiler/src/types.ts:117

Content of the PromptScript SKILL.md to inject into compilation output. When provided (and config doesn't disable it), this content is added to each formatter's native skill directory.


validator?

optional validator?: ValidatorConfig

Defined in: compiler/src/types.ts:103

Validator configuration