@nomadmystic/wordpress-scaffold-cli
Version:
This project is created to speed up WordPress development
14 lines (9 loc) • 379 B
text/typescript
import path from 'path';
import { fileURLToPath } from 'url';
// @link https://flaviocopes.com/fix-dirname-not-defined-es-module-scope/
const filename: string = fileURLToPath(import.meta.url);
const dirname: string = path.dirname(filename);
const config = {
packageRootDir: `${path.join(dirname, '../../')}`,
};
export let packageRootDir: string = config.packageRootDir;