1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-04 16:49:42 +00:00
Files
pocket-id/tests/utils/fs.util.ts
2025-12-30 17:01:22 +01:00

8 lines
203 B
TypeScript

import path from 'path';
export const tmpDir = pathFromRoot('.tmp');
export function pathFromRoot(p: string): string {
return path.resolve(path.dirname(new URL(import.meta.url).pathname), '..', p);
}