@hawkeyexl/manni 2.3.5 → 2.3.6

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/README.md CHANGED
@@ -98,7 +98,7 @@ actually reads rather than hand-written:
98
98
  ```yaml
99
99
  repos:
100
100
  - repo: https://github.com/hawkeyexl/manni
101
- rev: v2.3.5
101
+ rev: v2.3.6
102
102
  hooks:
103
103
  - id: manni-meta
104
104
  ```
@@ -61,7 +61,7 @@ import {
61
61
  supportedExtensions,
62
62
  terminalConfirm,
63
63
  toJsonText
64
- } from "./chunk-HUBOM7FZ.js";
64
+ } from "./chunk-UUXTFBWD.js";
65
65
 
66
66
  // src/meta/cli.ts
67
67
  import { existsSync } from "node:fs";
@@ -1517,4 +1517,4 @@ export {
1517
1517
  reportConfig,
1518
1518
  buildProgram
1519
1519
  };
1520
- //# sourceMappingURL=chunk-2ESHX2HT.js.map
1520
+ //# sourceMappingURL=chunk-3TVBXXJD.js.map
@@ -70,7 +70,7 @@ import {
70
70
  withValueAt,
71
71
  writeEncryptionKey,
72
72
  writeFileAtomic
73
- } from "./chunk-HUBOM7FZ.js";
73
+ } from "./chunk-UUXTFBWD.js";
74
74
 
75
75
  // src/meta/core/reencrypt.ts
76
76
  import { extname } from "node:path";
@@ -4265,4 +4265,4 @@ export {
4265
4265
  runKeyRotate,
4266
4266
  runKeySet
4267
4267
  };
4268
- //# sourceMappingURL=chunk-FG7LVRZ3.js.map
4268
+ //# sourceMappingURL=chunk-CGE2SVW7.js.map
@@ -8,7 +8,7 @@ var __export = (target, all) => {
8
8
  // package.json
9
9
  var package_default = {
10
10
  name: "@hawkeyexl/manni",
11
- version: "2.3.5",
11
+ version: "2.3.6",
12
12
  description: "One command line for documentation that is meant to be checked. `manni meta` validates the presence and format of document metadata (Markdown frontmatter and more) against JSON Schema, built for CI. Formerly docmeta.",
13
13
  type: "module",
14
14
  bin: {
@@ -199,8 +199,17 @@ function isMainModule(moduleUrl) {
199
199
  return false;
200
200
  }
201
201
  }
202
+ function endOutputOnClosedReader(streams = [process.stdout, process.stderr]) {
203
+ for (const stream of streams) {
204
+ stream.on("error", (err) => {
205
+ if (err.code === "EPIPE") return;
206
+ throw err;
207
+ });
208
+ }
209
+ }
202
210
  function runIfMain(moduleUrl, build) {
203
211
  if (!isMainModule(moduleUrl)) return;
212
+ endOutputOnClosedReader();
204
213
  runProgram(build()).catch(fail);
205
214
  }
206
215
 
@@ -19933,4 +19942,4 @@ export {
19933
19942
  renderQuery,
19934
19943
  renderQueryCsv
19935
19944
  };
19936
- //# sourceMappingURL=chunk-HUBOM7FZ.js.map
19945
+ //# sourceMappingURL=chunk-UUXTFBWD.js.map