@releasekit/notes 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1711,6 +1711,29 @@ async function runPipeline(input, config, dryRun) {
1711
1711
  packageNotes[ctx.packageName] = formatVersion(ctx);
1712
1712
  if (ctx.enhanced?.releaseNotes) {
1713
1713
  releaseNotesResult[ctx.packageName] = ctx.enhanced.releaseNotes;
1714
+ } else if (releaseNotesConfig) {
1715
+ if (releaseNotesConfig.templates?.path) {
1716
+ try {
1717
+ const templatePath = path7.resolve(releaseNotesConfig.templates.path);
1718
+ const docCtx = createDocumentContext([ctx], void 0);
1719
+ const rendered = renderTemplate(
1720
+ templatePath,
1721
+ docCtx,
1722
+ releaseNotesConfig.templates.engine
1723
+ );
1724
+ releaseNotesResult[ctx.packageName] = rendered.content;
1725
+ } catch (err) {
1726
+ warn(
1727
+ `Failed to render release notes template for ${ctx.packageName}: ${err instanceof Error ? err.message : String(err)}`
1728
+ );
1729
+ warn(`Release notes preview will not be available for ${ctx.packageName} in the workflow summary`);
1730
+ }
1731
+ } else {
1732
+ info(
1733
+ `No LLM release notes or template output for ${ctx.packageName}, using formatted changelog as release notes preview`
1734
+ );
1735
+ releaseNotesResult[ctx.packageName] = formatVersion(ctx);
1736
+ }
1714
1737
  }
1715
1738
  }
1716
1739
  return {
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  parseVersionOutput,
7
7
  runPipeline,
8
8
  saveAuth
9
- } from "./chunk-GWVZNYHL.js";
9
+ } from "./chunk-COAZCBI4.js";
10
10
  import {
11
11
  EXIT_CODES,
12
12
  error,
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  processInput,
17
17
  runPipeline,
18
18
  saveAuth
19
- } from "./chunk-GWVZNYHL.js";
19
+ } from "./chunk-COAZCBI4.js";
20
20
  import {
21
21
  aggregateToRoot,
22
22
  detectMonorepo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/notes",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Release notes and changelog generation with LLM-powered enhancement and flexible templating",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",