mdat-plugin-cli-help 1.0.7 → 1.0.8

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/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import * as type_fest0 from "type-fest";
1
+ import * as _$type_fest0 from "type-fest";
2
2
 
3
3
  //#region src/index.d.ts
4
4
  declare const _default: {
5
5
  cli: {
6
- content(options?: type_fest0.JsonValue | undefined): Promise<string>;
6
+ content(options?: _$type_fest0.JsonValue | undefined): Promise<string>;
7
7
  };
8
8
  'cli-help': {
9
- content(options?: type_fest0.JsonValue | undefined): Promise<string>;
9
+ content(options?: _$type_fest0.JsonValue | undefined): Promise<string>;
10
10
  };
11
11
  };
12
12
  //#endregion
package/dist/index.js CHANGED
@@ -8,7 +8,6 @@ import { loadConfig } from "mdat";
8
8
  import { readPackage } from "read-pkg";
9
9
  import fs from "node:fs/promises";
10
10
  import process from "node:process";
11
-
12
11
  //#region src/utilities/help-object-to-markdown.ts
13
12
  /**
14
13
  * Converts a ProgramInfo object extracted by one of the help parsers into a big
@@ -118,7 +117,6 @@ function findEmptyColumns(rows) {
118
117
  }
119
118
  return emptyColumnsIndexes;
120
119
  }
121
-
122
120
  //#endregion
123
121
  //#region src/utilities/parsers/meow.ts
124
122
  const flag$1 = createToken({
@@ -342,7 +340,6 @@ function helpStringToObject$2(helpString) {
342
340
  if (programInfo === void 0) throw new Error("Could not parse help string");
343
341
  return programInfo;
344
342
  }
345
-
346
343
  //#endregion
347
344
  //#region src/utilities/parsers/yargs.ts
348
345
  const flag = createToken({
@@ -658,7 +655,6 @@ function helpStringToObject$1(helpString) {
658
655
  if (programInfo === void 0) throw new Error("Could not parse help string");
659
656
  return programInfo;
660
657
  }
661
-
662
658
  //#endregion
663
659
  //#region src/utilities/parsers/index.ts
664
660
  var parsers_default = {
@@ -682,7 +678,6 @@ function getCommandParts(wholeCommand) {
682
678
  subcommand
683
679
  };
684
680
  }
685
-
686
681
  //#endregion
687
682
  //#region src/utilities/help-string-to-object.ts
688
683
  /**
@@ -705,7 +700,6 @@ function helpStringToObject(helpString) {
705
700
  }
706
701
  log.error("Could not parse help string with any parser");
707
702
  }
708
-
709
703
  //#endregion
710
704
  //#region src/utilities/get-help-markdown.ts
711
705
  /**
@@ -758,7 +752,6 @@ async function getHelpString(resolvedCommand) {
758
752
  if (rawHelpString === void 0 || rawHelpString === "") throw new Error(`No result from running CLI help command: "${resolvedCommand}"\n`);
759
753
  return rawHelpString;
760
754
  }
761
-
762
755
  //#endregion
763
756
  //#region src/utilities/get-package-json.ts
764
757
  let packageJson;
@@ -777,7 +770,6 @@ async function getPackageJson() {
777
770
  packagePath: packageFile
778
771
  };
779
772
  }
780
-
781
773
  //#endregion
782
774
  //#region src/utilities/is-executable.ts
783
775
  /**
@@ -798,7 +790,6 @@ async function isExecutable(filePath, strictExtensions = false) {
798
790
  return false;
799
791
  }
800
792
  }
801
-
802
793
  //#endregion
803
794
  //#region src/utilities/infer-command.ts
804
795
  /**
@@ -840,7 +831,6 @@ async function getCommandPathFromPackage(commandName) {
840
831
  if (path.normalize(value) === path.normalize(commandName)) return value;
841
832
  }
842
833
  }
843
-
844
834
  //#endregion
845
835
  //#region src/index.ts
846
836
  const cliHelpRule = { async content(options) {
@@ -855,6 +845,5 @@ var src_default = {
855
845
  cli: cliHelpRule,
856
846
  "cli-help": cliHelpRule
857
847
  };
858
-
859
848
  //#endregion
860
- export { src_default as default };
849
+ export { src_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdat-plugin-cli-help",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Mdat plugin to generate tabular help documentation for CLI tools in Markdown files.",
5
5
  "keywords": [
6
6
  "markdown",
@@ -21,6 +21,7 @@
21
21
  "email": "eric@ericmika.com",
22
22
  "url": "https://ericmika.com"
23
23
  },
24
+ "sideEffects": false,
24
25
  "type": "module",
25
26
  "exports": {
26
27
  ".": {
@@ -35,23 +36,23 @@
35
36
  ],
36
37
  "dependencies": {
37
38
  "@types/which": "^3.0.4",
38
- "chevrotain": "^11.1.1",
39
+ "chevrotain": "^11.2.0",
39
40
  "execa": "^9.6.1",
40
41
  "read-pkg": "^10.1.0",
41
- "type-fest": "^5.4.4",
42
+ "type-fest": "^5.5.0",
42
43
  "which": "^6.0.1",
43
44
  "zod": "^3.25.76"
44
45
  },
45
46
  "devDependencies": {
46
- "@kitschpatrol/shared-config": "^6.0.0",
47
- "@types/node": "~20.19.33",
48
- "bumpp": "^10.4.1",
49
- "mdat": "^1.3.5",
47
+ "@kitschpatrol/shared-config": "^6.1.0",
48
+ "@types/node": "~20.19.37",
49
+ "bumpp": "^11.0.1",
50
+ "mdat": "^1.4.2",
50
51
  "meow": "^14.1.0",
51
- "remark-mdat": "^1.2.3",
52
- "tsdown": "^0.20.3",
52
+ "remark-mdat": "^1.2.5",
53
+ "tsdown": "^0.21.7",
53
54
  "typescript": "~5.9.3",
54
- "vitest": "^4.0.18"
55
+ "vitest": "^4.1.2"
55
56
  },
56
57
  "peerDependencies": {
57
58
  "mdat": "^1.1.0",
@@ -72,6 +73,6 @@
72
73
  "fix": "ksc fix",
73
74
  "lint": "ksc lint",
74
75
  "release": "bumpp --commit 'Release: %s' && pnpm run build && NPM_AUTH_TOKEN=$(op read 'op://Personal/npm/token') && pnpm publish",
75
- "test": "vitest --no-file-parallelism"
76
+ "test": "vitest run --no-file-parallelism"
76
77
  }
77
78
  }