mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-12 00:02:56 +03:00
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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);
|
|
}
|