compileFor()
compileFor(
files,entryPath,formatter):Promise<CompileResult>
Defined in: browser-compiler/src/index.ts:198
Compile PromptScript files for a specific formatter.
Convenience function when you only need output for one formatter.
Parameters
files
Map<string, string> | Record<string, string>
Map of file paths to contents
entryPath
string
Path to the entry file
formatter
string
Formatter name (e.g., ‘claude’, ‘github’, ‘cursor’)
Returns
Promise<CompileResult>
Compilation result with output for the specified formatter