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": {
|
"dependencies": {
|
||||||
"conventional-changelog": "^7.1.1",
|
"conventional-changelog": "^7.1.1",
|
||||||
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.0",
|
||||||
"fs-extra": "^11.3.0",
|
"fs-extra": "^11.3.0",
|
||||||
"node-fetch": "^3.3.2"
|
"node-fetch": "^3.3.2"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ 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");
|
const conventionalChangelog = 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);
|
||||||
@@ -66,7 +66,6 @@ if (result.status !== 0) {
|
|||||||
|
|
||||||
const getLatestChangelog = async () => {
|
const getLatestChangelog = async () => {
|
||||||
const changelogStream = conventionalChangelog({
|
const changelogStream = conventionalChangelog({
|
||||||
preset: "conventionalcommits",
|
|
||||||
releaseCount: 1,
|
releaseCount: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -74,6 +73,7 @@ const getLatestChangelog = async () => {
|
|||||||
for await (const chunk of changelogStream) {
|
for await (const chunk of changelogStream) {
|
||||||
changelog += chunk;
|
changelog += chunk;
|
||||||
}
|
}
|
||||||
|
|
||||||
return changelog;
|
return changelog;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user