chore: fix dirname not defined in nodejs modules

This commit is contained in:
Miodec 2024-08-02 11:02:40 +02:00
parent fe50fe1659
commit 9972e9d39f

View file

@ -3,8 +3,13 @@ import { Octokit } from "@octokit/rest";
import dotenv from "dotenv";
import { readFileSync } from "fs";
import readlineSync from "readline-sync";
import path, { dirname } from "path";
import path from "path";
import fs from "fs";
import { fileURLToPath } from "url";
import { dirname } from "path";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
dotenv.config();