@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.
- package/dist/{chunk-H44KSHFJ.js → chunk-ADZJSWND.js} +8 -0
- package/dist/cli.cjs +8 -0
- package/dist/cli.js +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -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
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