Function: compileFor()¶
compileFor(
files,entryPath,formatter):Promise\<CompileResult>
Defined in: browser-compiler/src/index.ts:176
Compile PromptScript files for a specific formatter.
Convenience function when you only need output for one formatter.
Parameters¶
files¶
Map of file paths to contents
Map\<string, string> | Record\<string, string>
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