@releasekit/notes 0.2.0-next.4 → 0.2.0-next.5

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.
@@ -256,6 +256,10 @@ function writeMarkdown(outputPath, contexts, config, dryRun) {
256
256
  if (!fs2.existsSync(dir)) {
257
257
  fs2.mkdirSync(dir, { recursive: true });
258
258
  }
259
+ if (outputPath === "-") {
260
+ process.stdout.write(content);
261
+ return;
262
+ }
259
263
  if (config.updateStrategy === "prepend" && fs2.existsSync(outputPath) && contexts.length === 1) {
260
264
  const firstContext = contexts[0];
261
265
  if (firstContext) {
@@ -1342,6 +1346,10 @@ async function generateWithTemplate(contexts, config, outputPath, dryRun) {
1342
1346
  info4("--- End Preview ---");
1343
1347
  return;
1344
1348
  }
1349
+ if (outputPath === "-") {
1350
+ process.stdout.write(result.content);
1351
+ return;
1352
+ }
1345
1353
  const dir = path6.dirname(outputPath);
1346
1354
  if (!fs8.existsSync(dir)) {
1347
1355
  fs8.mkdirSync(dir, { recursive: true });
package/dist/cli.cjs CHANGED
@@ -762,6 +762,10 @@ function writeMarkdown(outputPath, contexts, config, dryRun) {
762
762
  if (!fs2.existsSync(dir)) {
763
763
  fs2.mkdirSync(dir, { recursive: true });
764
764
  }
765
+ if (outputPath === "-") {
766
+ process.stdout.write(content);
767
+ return;
768
+ }
765
769
  if (config.updateStrategy === "prepend" && fs2.existsSync(outputPath) && contexts.length === 1) {
766
770
  const firstContext = contexts[0];
767
771
  if (firstContext) {
@@ -1354,6 +1358,10 @@ async function generateWithTemplate(contexts, config, outputPath, dryRun) {
1354
1358
  (0, import_core8.info)("--- End Preview ---");
1355
1359
  return;
1356
1360
  }
1361
+ if (outputPath === "-") {
1362
+ process.stdout.write(result.content);
1363
+ return;
1364
+ }
1357
1365
  const dir = path6.dirname(outputPath);
1358
1366
  if (!fs8.existsSync(dir)) {
1359
1367
  fs8.mkdirSync(dir, { recursive: true });
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  runPipeline,
12
12
  saveAuth,
13
13
  writeMonorepoChangelogs
14
- } from "./chunk-H44KSHFJ.js";
14
+ } from "./chunk-ADZJSWND.js";
15
15
 
16
16
  // src/cli.ts
17
17
  import * as fs from "fs";
package/dist/index.cjs CHANGED
@@ -812,6 +812,10 @@ function writeMarkdown(outputPath, contexts, config, dryRun) {
812
812
  if (!fs2.existsSync(dir)) {
813
813
  fs2.mkdirSync(dir, { recursive: true });
814
814
  }
815
+ if (outputPath === "-") {
816
+ process.stdout.write(content);
817
+ return;
818
+ }
815
819
  if (config.updateStrategy === "prepend" && fs2.existsSync(outputPath) && contexts.length === 1) {
816
820
  const firstContext = contexts[0];
817
821
  if (firstContext) {
@@ -1404,6 +1408,10 @@ async function generateWithTemplate(contexts, config, outputPath, dryRun) {
1404
1408
  (0, import_core8.info)("--- End Preview ---");
1405
1409
  return;
1406
1410
  }
1411
+ if (outputPath === "-") {
1412
+ process.stdout.write(result.content);
1413
+ return;
1414
+ }
1407
1415
  const dir = path6.dirname(outputPath);
1408
1416
  if (!fs8.existsSync(dir)) {
1409
1417
  fs8.mkdirSync(dir, { recursive: true });
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  writeJson,
25
25
  writeMarkdown,
26
26
  writeMonorepoChangelogs
27
- } from "./chunk-H44KSHFJ.js";
27
+ } from "./chunk-ADZJSWND.js";
28
28
  export {
29
29
  NotesError as ChangelogCreatorError,
30
30
  ConfigError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/notes",
3
- "version": "0.2.0-next.4",
3
+ "version": "0.2.0-next.5",
4
4
  "description": "Changelog generation with LLM-powered enhancement and flexible templating",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",