diff --git a/scripts/create-gitea-release.js b/scripts/create-gitea-release.js index d16e821..45e803f 100644 --- a/scripts/create-gitea-release.js +++ b/scripts/create-gitea-release.js @@ -9,10 +9,13 @@ import path from "path"; import { spawnSync } from "child_process"; import { fileURLToPath } from "url"; import fetch from "node-fetch"; -import conventionalChangelog from "conventional-changelog"; import dotenv from "dotenv"; dotenv.config({ path: "./.env" }); +import { createRequire } from "node:module"; +const require = createRequire(import.meta.url); +const conventionalChangelog = require("conventional-changelog"); + // Resolve the directory of the current script const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename);