resolve()
resolve(
entryPath,options):Promise<ResolvedAST>
Defined in: resolver/src/index.ts:234
Resolve a PromptScript file with a standalone function.
Parameters
entryPath
string
Path to the entry file
options
Resolution options
Returns
Promise<ResolvedAST>
Resolved AST with sources and errors
Example
import { resolve } from '@promptscript/resolver';
const result = await resolve('./project.prs', { registryPath: '/path/to/registry', localPath: process.cwd(),});
if (result.ast) { console.log('Resolved successfully');}