UNPKG

@bomb.sh/tools

Version:

The internal dev, build, and lint CLI for Bombshell projects

21 lines 870 B
//#region src/utils.d.ts declare function local(file: string): string; /** Error class for `bsh` failures. Carries a stable, greppable code. */ declare class ToolsError extends Error { code: string; constructor(message: string, code: string); } /** * Compute a relative path from one directory URL to another, for APIs that * require a string path (e.g. `fs.symlink` targets). POSIX-style — forward * slashes are accepted by every platform Node supports for this purpose. */ declare function relativeUrlPath(from: URL, to: URL): string; /** * Resolve a symlink target (as returned by `fs.readlink`, which may be * relative to the link's directory) to an absolute URL. */ declare function resolveLinkTarget(linkDir: URL, target: string): URL; //#endregion export { ToolsError, local, relativeUrlPath, resolveLinkTarget }; //# sourceMappingURL=utils.d.mts.map