ethers.js/lib.esm/_admin/utils/path.js

12 lines
410 B
JavaScript
Raw Normal View History

2022-09-05 23:57:11 +03:00
import { dirname, resolve as _resolve } from "path";
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export const ROOT = _resolve(__dirname, "../../../");
console.log(ROOT);
export function resolve(...args) {
args = args.slice();
args.unshift(ROOT);
return _resolve.apply(null, args);
}
//# sourceMappingURL=path.js.map