mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 22:55:24 +00:00
feat: changelog.md release notes, v tags, plugin release notes and videos
This commit is contained in:
1 parent
b9dd3488a5
commit
9bc2be721b
45 files changed
+1462
-816
No files matched your search
@@ -0,0 +1,19 @@
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const root = path.resolve(__dirname, "..");
|
||||
const sdk = path.join(root, "packages/plugin-sdk/dist/changelog.js");
|
||||
|
||||
if (!fs.existsSync(sdk)) {
|
||||
console.error("check-changelog: build the SDK first (npm run build:sdk)");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const { parseChangelog } = require(sdk);
|
||||
const { problems } = parseChangelog(
|
||||
fs.readFileSync(path.join(root, "CHANGELOG.md"), "utf8"),
|
||||
);
|
||||
if (problems.length > 0) {
|
||||
for (const problem of problems) console.error(` CHANGELOG.md: ${problem}`);
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in new issue
Block a user