Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
const rootDirFinder = function(): string { | |
let i = __dirname.split('/').findIndex((dir) => dir === 'transformer-autocomplete'); | |
return __dirname.split('/').slice(0, i+1).join('/'); | |
}; | |
const __rootDir: string = rootDirFinder(); | |
export default __rootDir; | |