Spaces:
Sleeping
Sleeping
File size: 334 Bytes
07af8f3 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import { fileURLToPath } from 'url';
import path from 'path';
/**
* Get the directory of the current module
* This is in a separate file to allow mocking in test environments
*/
export function getCurrentModuleDir(): string {
const currentModuleFile = fileURLToPath(import.meta.url);
return path.dirname(currentModuleFile);
}
|