Function: resolveProjectPath()
function resolveProjectPath(anchorsPath, file): string;
Defined in: packages/uimatch-selector-anchors/src/core/resolver.ts:35
Resolve project path relative to anchors file directory
Parameters
anchorsPath
string
Path to the anchors JSON file
file
string
Source file path (absolute or relative)
Returns
string
Absolute path to the source file
Example
const absolutePath = resolveProjectPath('/project/anchors.json', 'src/Button.tsx');
// Returns: '/project/src/Button.tsx'