extension-develop
Version:
The develop step of Extension.js
11 lines (10 loc) • 468 B
TypeScript
/**
* Resolve a manifest-declared path to an absolute filesystem path.
* Handles public-root style inputs consistently across OS/runners:
* - '/foo' => '<context>/public/foo'
* - '/public/foo' => '<context>/public/foo'
* - 'public/foo' => '<context>/public/foo'
* - './public/foo' => '<context>/public/foo'
* - 'foo/bar' => '<context>/foo/bar'
*/
export declare function resolveManifestPath(context: string, relativePath: string): string;