@bemoje/cli 3.1.1 → 3.1.3

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.
Files changed (37) hide show
  1. package/lib/index.cjs +75 -6192
  2. package/lib/index.d.cts +2658 -6
  3. package/lib/index.d.ts +2658 -6
  4. package/lib/index.js +71 -6190
  5. package/package.json +41 -113
  6. package/lib/lib/Command.cjs +0 -7626
  7. package/lib/lib/Command.d.cts +0 -1
  8. package/lib/lib/Command.d.ts +0 -1
  9. package/lib/lib/Command.js +0 -7620
  10. package/lib/lib/Help.cjs +0 -5201
  11. package/lib/lib/Help.d.cts +0 -1
  12. package/lib/lib/Help.d.ts +0 -1
  13. package/lib/lib/Help.js +0 -5195
  14. package/lib/lib/helpers/findCommand.cjs +0 -20
  15. package/lib/lib/helpers/findCommand.d.cts +0 -8
  16. package/lib/lib/helpers/findCommand.d.ts +0 -8
  17. package/lib/lib/helpers/findCommand.js +0 -18
  18. package/lib/lib/helpers/findOption.cjs +0 -18
  19. package/lib/lib/helpers/findOption.d.cts +0 -8
  20. package/lib/lib/helpers/findOption.d.ts +0 -8
  21. package/lib/lib/helpers/findOption.js +0 -16
  22. package/lib/lib/helpers/getCommandAncestors.cjs +0 -23
  23. package/lib/lib/helpers/getCommandAncestors.d.cts +0 -8
  24. package/lib/lib/helpers/getCommandAncestors.d.ts +0 -8
  25. package/lib/lib/helpers/getCommandAncestors.js +0 -21
  26. package/lib/lib/helpers/getCommandAndAncestors.cjs +0 -17
  27. package/lib/lib/helpers/getCommandAndAncestors.d.cts +0 -8
  28. package/lib/lib/helpers/getCommandAndAncestors.d.ts +0 -8
  29. package/lib/lib/helpers/getCommandAndAncestors.js +0 -15
  30. package/lib/lib/helpers/parseOptionFlags.cjs +0 -30
  31. package/lib/lib/helpers/parseOptionFlags.d.cts +0 -13
  32. package/lib/lib/helpers/parseOptionFlags.d.ts +0 -13
  33. package/lib/lib/helpers/parseOptionFlags.js +0 -28
  34. package/lib/lib/types.cjs +0 -2
  35. package/lib/lib/types.d.cts +0 -1
  36. package/lib/lib/types.d.ts +0 -1
  37. package/lib/lib/types.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "@bemoje/cli",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "A type-safe CLI framework for building command-line interfaces with typed arguments, options, subcommands, and auto-generated help - without execution coupling.",
5
+ "type": "module",
6
+ "sideEffects": false,
5
7
  "keywords": [
6
8
  "cli",
7
9
  "command-line",
@@ -18,18 +20,15 @@
18
20
  "args",
19
21
  "argv"
20
22
  ],
21
- "dependencies": {
22
- "ansi-colors": "^4.1.3",
23
- "es-toolkit": "^1.45.1"
24
- },
25
- "type": "module",
26
- "sideEffects": false,
27
- "publishConfig": {
28
- "access": "public"
29
- },
30
23
  "main": "./lib/index.cjs",
31
24
  "module": "./lib/index.js",
32
25
  "types": "./lib/index.d.ts",
26
+ "files": [
27
+ "./lib/index.js",
28
+ "./lib/index.d.ts",
29
+ "./lib/index.cjs",
30
+ "./lib/index.d.cts"
31
+ ],
33
32
  "exports": {
34
33
  ".": {
35
34
  "import": {
@@ -41,134 +40,63 @@
41
40
  "default": "./lib/index.cjs"
42
41
  }
43
42
  },
44
- "./lib/Command": {
45
- "import": {
46
- "types": "./lib/lib/Command.d.ts",
47
- "default": "./lib/lib/Command.js"
48
- },
49
- "require": {
50
- "types": "./lib/lib/Command.d.cts",
51
- "default": "./lib/lib/Command.cjs"
52
- }
53
- },
54
- "./lib/Help": {
55
- "import": {
56
- "types": "./lib/lib/Help.d.ts",
57
- "default": "./lib/lib/Help.js"
58
- },
59
- "require": {
60
- "types": "./lib/lib/Help.d.cts",
61
- "default": "./lib/lib/Help.cjs"
62
- }
63
- },
64
- "./lib/helpers/findCommand": {
65
- "import": {
66
- "types": "./lib/lib/helpers/findCommand.d.ts",
67
- "default": "./lib/lib/helpers/findCommand.js"
68
- },
69
- "require": {
70
- "types": "./lib/lib/helpers/findCommand.d.cts",
71
- "default": "./lib/lib/helpers/findCommand.cjs"
72
- }
73
- },
74
- "./lib/helpers/findOption": {
75
- "import": {
76
- "types": "./lib/lib/helpers/findOption.d.ts",
77
- "default": "./lib/lib/helpers/findOption.js"
78
- },
79
- "require": {
80
- "types": "./lib/lib/helpers/findOption.d.cts",
81
- "default": "./lib/lib/helpers/findOption.cjs"
82
- }
83
- },
84
- "./lib/helpers/getCommandAncestors": {
43
+ "./helpers": {
85
44
  "import": {
86
- "types": "./lib/lib/helpers/getCommandAncestors.d.ts",
87
- "default": "./lib/lib/helpers/getCommandAncestors.js"
45
+ "types": "./lib/index.d.ts",
46
+ "default": "./lib/index.js"
88
47
  },
89
48
  "require": {
90
- "types": "./lib/lib/helpers/getCommandAncestors.d.cts",
91
- "default": "./lib/lib/helpers/getCommandAncestors.cjs"
49
+ "types": "./lib/index.d.cts",
50
+ "default": "./lib/index.cjs"
92
51
  }
93
52
  },
94
- "./lib/helpers/getCommandAndAncestors": {
53
+ "./Command": {
95
54
  "import": {
96
- "types": "./lib/lib/helpers/getCommandAndAncestors.d.ts",
97
- "default": "./lib/lib/helpers/getCommandAndAncestors.js"
55
+ "types": "./lib/index.d.ts",
56
+ "default": "./lib/index.js"
98
57
  },
99
58
  "require": {
100
- "types": "./lib/lib/helpers/getCommandAndAncestors.d.cts",
101
- "default": "./lib/lib/helpers/getCommandAndAncestors.cjs"
59
+ "types": "./lib/index.d.cts",
60
+ "default": "./lib/index.cjs"
102
61
  }
103
62
  },
104
- "./lib/helpers/parseOptionFlags": {
63
+ "./Help": {
105
64
  "import": {
106
- "types": "./lib/lib/helpers/parseOptionFlags.d.ts",
107
- "default": "./lib/lib/helpers/parseOptionFlags.js"
65
+ "types": "./lib/index.d.ts",
66
+ "default": "./lib/index.js"
108
67
  },
109
68
  "require": {
110
- "types": "./lib/lib/helpers/parseOptionFlags.d.cts",
111
- "default": "./lib/lib/helpers/parseOptionFlags.cjs"
69
+ "types": "./lib/index.d.cts",
70
+ "default": "./lib/index.cjs"
112
71
  }
113
72
  },
114
- "./lib/types": {
73
+ "./types": {
115
74
  "import": {
116
- "types": "./lib/lib/types.d.ts",
117
- "default": "./lib/lib/types.js"
75
+ "types": "./lib/index.d.ts",
76
+ "default": "./lib/index.js"
118
77
  },
119
78
  "require": {
120
- "types": "./lib/lib/types.d.cts",
121
- "default": "./lib/lib/types.cjs"
79
+ "types": "./lib/index.d.cts",
80
+ "default": "./lib/index.cjs"
122
81
  }
123
82
  }
124
83
  },
125
- "files": [
126
- "./lib/index.js",
127
- "./lib/index.d.ts",
128
- "./lib/index.cjs",
129
- "./lib/index.d.cts",
130
- "./lib/lib/Command.js",
131
- "./lib/lib/Command.d.ts",
132
- "./lib/lib/Command.cjs",
133
- "./lib/lib/Command.d.cts",
134
- "./lib/lib/Help.js",
135
- "./lib/lib/Help.d.ts",
136
- "./lib/lib/Help.cjs",
137
- "./lib/lib/Help.d.cts",
138
- "./lib/lib/helpers/findCommand.js",
139
- "./lib/lib/helpers/findCommand.d.ts",
140
- "./lib/lib/helpers/findCommand.cjs",
141
- "./lib/lib/helpers/findCommand.d.cts",
142
- "./lib/lib/helpers/findOption.js",
143
- "./lib/lib/helpers/findOption.d.ts",
144
- "./lib/lib/helpers/findOption.cjs",
145
- "./lib/lib/helpers/findOption.d.cts",
146
- "./lib/lib/helpers/getCommandAncestors.js",
147
- "./lib/lib/helpers/getCommandAncestors.d.ts",
148
- "./lib/lib/helpers/getCommandAncestors.cjs",
149
- "./lib/lib/helpers/getCommandAncestors.d.cts",
150
- "./lib/lib/helpers/getCommandAndAncestors.js",
151
- "./lib/lib/helpers/getCommandAndAncestors.d.ts",
152
- "./lib/lib/helpers/getCommandAndAncestors.cjs",
153
- "./lib/lib/helpers/getCommandAndAncestors.d.cts",
154
- "./lib/lib/helpers/parseOptionFlags.js",
155
- "./lib/lib/helpers/parseOptionFlags.d.ts",
156
- "./lib/lib/helpers/parseOptionFlags.cjs",
157
- "./lib/lib/helpers/parseOptionFlags.d.cts",
158
- "./lib/lib/types.js",
159
- "./lib/lib/types.d.ts",
160
- "./lib/lib/types.cjs",
161
- "./lib/lib/types.d.cts"
162
- ],
163
- "repository": {
164
- "type": "git",
165
- "url": "git+https://github.com/bemoje/mono.git",
166
- "directory": "libs/cli"
84
+ "dependencies": {
85
+ "ansi-colors": "^4.1.3",
86
+ "es-toolkit": "^1.45.1"
87
+ },
88
+ "publishConfig": {
89
+ "access": "public"
167
90
  },
91
+ "license": "MIT",
168
92
  "author": {
169
93
  "name": "Benjamin Møller Jensen",
170
94
  "email": "bemoje@bemoje.net",
171
95
  "url": "https://github.com/bemoje/"
172
96
  },
173
- "license": "MIT"
97
+ "repository": {
98
+ "type": "git",
99
+ "url": "git+https://github.com/bemoje/mono.git",
100
+ "directory": "libs/cli"
101
+ }
174
102
  }