Skip to content

Commit b34dc8c

Browse files
authored
build: fix release config (#314)
1 parent 5fadbc4 commit b34dc8c

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

.releaserc.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
import {createRequire} from "module";
2-
import fs from "fs-extra";
32
import {getBinariesGithubRelease} from "./dist/bindings/utils/binariesGithubRelease.js";
43
import {cliBinName, defaultLlamaCppGitHubRepo} from "./dist/config.js";
54

65
import type {GlobalConfig, Result as SemanticReleaseDryRunResult} from "semantic-release";
76

87
const require = createRequire(import.meta.url);
98

10-
const defaultFooterTemplatePath = require.resolve("conventional-changelog-writer/templates/footer.hbs");
11-
const defaultFooterTemplate = await fs.readFile(defaultFooterTemplatePath, "utf8");
9+
// source: conventional-changelog-writer/templates/footer.hbs
10+
const defaultFooterTemplate = `
11+
{{#if noteGroups}}
12+
{{#each noteGroups}}
13+
14+
### {{title}}
15+
16+
{{#each notes}}
17+
* {{text}}
18+
{{/each}}
19+
{{/each}}
20+
{{/if}}
21+
`.slice(1, -1);
1222
const binariesSourceRelease = await getBinariesGithubRelease();
1323
const homepageUrl = require("./package.json").homepage;
1424
const homepageUrlWithoutTrailingSlash = homepageUrl.endsWith("/")

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
"vite-node": "^2.1.1",
166166
"vitepress": "^1.3.4",
167167
"vitest": "^2.1.1",
168-
"zx": "^8.1.6"
168+
"zx": "^8.1.7"
169169
},
170170
"dependencies": {
171171
"@huggingface/jinja": "^0.3.1",

templates/electron-typescript-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"vite": "^5.4.5",
5353
"vite-plugin-electron": "^0.28.7",
5454
"vite-plugin-electron-renderer": "^0.14.5",
55-
"zx": "^8.1.6"
55+
"zx": "^8.1.7"
5656
},
5757
"overrides": {
5858
"electron-builder": {

0 commit comments

Comments
 (0)