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