fix(change): fuck
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user