fix(release): changes
This commit is contained in:
14115
package-lock.json
generated
14115
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -37,6 +37,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"conventional-changelog": "^7.1.1",
|
||||
"conventional-changelog-conventionalcommits": "^9.1.0",
|
||||
"dotenv": "^17.2.0",
|
||||
"fs-extra": "^11.3.0",
|
||||
"node-fetch": "^3.3.2"
|
||||
|
||||
@@ -14,7 +14,7 @@ dotenv.config({ path: "./.env" });
|
||||
|
||||
import { createRequire } from "node:module";
|
||||
const require = createRequire(import.meta.url);
|
||||
const conventionalChangelog = require("conventional-changelog");
|
||||
const conventionalChangelog = require("conventional-changelog-conventionalcommits");
|
||||
|
||||
// Resolve the directory of the current script
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
@@ -66,7 +66,6 @@ if (result.status !== 0) {
|
||||
|
||||
const getLatestChangelog = async () => {
|
||||
const changelogStream = conventionalChangelog({
|
||||
preset: "conventionalcommits",
|
||||
releaseCount: 1,
|
||||
});
|
||||
|
||||
@@ -74,6 +73,7 @@ const getLatestChangelog = async () => {
|
||||
for await (const chunk of changelogStream) {
|
||||
changelog += chunk;
|
||||
}
|
||||
|
||||
return changelog;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user