mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-12 08:12:57 +03:00
8 lines
203 B
TypeScript
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);
|
||
|
|
}
|