2022-12-04 17:53:43 +08:00
|
|
|
import path from 'path';
|
|
|
|
|
import { fileURLToPath } from 'url';
|
|
|
|
|
|
2023-06-22 14:36:02 +08:00
|
|
|
// Convert the current module URL to a file path
|
|
|
|
|
const currentModulePath = fileURLToPath(import.meta.url);
|
2022-12-04 17:53:43 +08:00
|
|
|
|
2023-06-22 14:36:02 +08:00
|
|
|
// Resolve the parent directory of the current module
|
2023-07-14 22:14:01 +08:00
|
|
|
export const npmDirectory = path.join(path.dirname(currentModulePath), '..');
|
|
|
|
|
|
2025-08-14 20:51:42 +08:00
|
|
|
export const tauriConfigDirectory = path.join(
|
|
|
|
|
npmDirectory,
|
|
|
|
|
'src-tauri',
|
|
|
|
|
'.pake',
|
|
|
|
|
);
|