UNPKG

@elora-cloud/elora-cli

Version:
14 lines (10 loc) 684 B
'use strict'; var path = require('node:path'); var node_url = require('node:url'); var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null; const ___dirname = path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('utils/paths.cjs', document.baseURI).href)))); const dir_path = (...args) => path.resolve(___dirname, ...args); const ROOT_DIR = dir_path('.'); exports.ROOT_DIR = ROOT_DIR; exports.___dirname = ___dirname; exports.dir_path = dir_path;