From 24c733a28fa0456cd6125dd17328a4d69c18db0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leif=20=C3=98deg=C3=A5rd=20Uhlen?= <126719+leifode@users.noreply.github.com> Date: Tue, 5 May 2026 10:54:34 +0200 Subject: [PATCH] more fixes migrating from cjs to esm --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 69f4328..f445464 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,9 @@ import exec from './src/_exec.js'; -import path from 'path'; +import {dirname, path} from 'path'; +import { fileURLToPath } from 'url'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = dirname(__filename); const run = async () => { // Install Dependencies