fix(change): fuck

This commit is contained in:
2025-07-12 17:01:57 -05:00
parent 5342e60811
commit 10fcdbe89f

View File

@@ -14,7 +14,9 @@ dotenv.config({ path: "./.env" });
import { createRequire } from "node:module"; import { createRequire } from "node:module";
const require = createRequire(import.meta.url); const require = createRequire(import.meta.url);
const conventionalChangelog = require("conventional-changelog-conventionalcommits"); const conventionalChangelog =
require("conventional-changelog-conventionalcommits").default ||
require("conventional-changelog-conventionalcommits");
// Resolve the directory of the current script // Resolve the directory of the current script
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
@@ -65,9 +67,7 @@ if (result.status !== 0) {
} }
const getLatestChangelog = async () => { const getLatestChangelog = async () => {
const changelogStream = conventionalChangelog({ const changelogStream = conventionalChangelog({ releaseCount: 1 });
releaseCount: 1,
});
let changelog = ""; let changelog = "";
for await (const chunk of changelogStream) { for await (const chunk of changelogStream) {