@bemoje/cli 3.1.1 → 3.1.2

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 +11 -6128
  2. package/lib/index.d.cts +2658 -6
  3. package/lib/index.d.ts +2658 -6
  4. package/lib/index.js +7 -6126
  5. package/package.json +53 -85
  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.2",
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": {
@@ -43,132 +42,101 @@
43
42
  },
44
43
  "./lib/Command": {
45
44
  "import": {
46
- "types": "./lib/lib/Command.d.ts",
47
- "default": "./lib/lib/Command.js"
45
+ "types": "./lib/index.d.ts",
46
+ "default": "./lib/index.js"
48
47
  },
49
48
  "require": {
50
- "types": "./lib/lib/Command.d.cts",
51
- "default": "./lib/lib/Command.cjs"
49
+ "types": "./lib/index.d.cts",
50
+ "default": "./lib/index.cjs"
52
51
  }
53
52
  },
54
53
  "./lib/Help": {
55
54
  "import": {
56
- "types": "./lib/lib/Help.d.ts",
57
- "default": "./lib/lib/Help.js"
55
+ "types": "./lib/index.d.ts",
56
+ "default": "./lib/index.js"
58
57
  },
59
58
  "require": {
60
- "types": "./lib/lib/Help.d.cts",
61
- "default": "./lib/lib/Help.cjs"
59
+ "types": "./lib/index.d.cts",
60
+ "default": "./lib/index.cjs"
62
61
  }
63
62
  },
64
63
  "./lib/helpers/findCommand": {
65
64
  "import": {
66
- "types": "./lib/lib/helpers/findCommand.d.ts",
67
- "default": "./lib/lib/helpers/findCommand.js"
65
+ "types": "./lib/index.d.ts",
66
+ "default": "./lib/index.js"
68
67
  },
69
68
  "require": {
70
- "types": "./lib/lib/helpers/findCommand.d.cts",
71
- "default": "./lib/lib/helpers/findCommand.cjs"
69
+ "types": "./lib/index.d.cts",
70
+ "default": "./lib/index.cjs"
72
71
  }
73
72
  },
74
73
  "./lib/helpers/findOption": {
75
74
  "import": {
76
- "types": "./lib/lib/helpers/findOption.d.ts",
77
- "default": "./lib/lib/helpers/findOption.js"
75
+ "types": "./lib/index.d.ts",
76
+ "default": "./lib/index.js"
78
77
  },
79
78
  "require": {
80
- "types": "./lib/lib/helpers/findOption.d.cts",
81
- "default": "./lib/lib/helpers/findOption.cjs"
79
+ "types": "./lib/index.d.cts",
80
+ "default": "./lib/index.cjs"
82
81
  }
83
82
  },
84
83
  "./lib/helpers/getCommandAncestors": {
85
84
  "import": {
86
- "types": "./lib/lib/helpers/getCommandAncestors.d.ts",
87
- "default": "./lib/lib/helpers/getCommandAncestors.js"
85
+ "types": "./lib/index.d.ts",
86
+ "default": "./lib/index.js"
88
87
  },
89
88
  "require": {
90
- "types": "./lib/lib/helpers/getCommandAncestors.d.cts",
91
- "default": "./lib/lib/helpers/getCommandAncestors.cjs"
89
+ "types": "./lib/index.d.cts",
90
+ "default": "./lib/index.cjs"
92
91
  }
93
92
  },
94
93
  "./lib/helpers/getCommandAndAncestors": {
95
94
  "import": {
96
- "types": "./lib/lib/helpers/getCommandAndAncestors.d.ts",
97
- "default": "./lib/lib/helpers/getCommandAndAncestors.js"
95
+ "types": "./lib/index.d.ts",
96
+ "default": "./lib/index.js"
98
97
  },
99
98
  "require": {
100
- "types": "./lib/lib/helpers/getCommandAndAncestors.d.cts",
101
- "default": "./lib/lib/helpers/getCommandAndAncestors.cjs"
99
+ "types": "./lib/index.d.cts",
100
+ "default": "./lib/index.cjs"
102
101
  }
103
102
  },
104
103
  "./lib/helpers/parseOptionFlags": {
105
104
  "import": {
106
- "types": "./lib/lib/helpers/parseOptionFlags.d.ts",
107
- "default": "./lib/lib/helpers/parseOptionFlags.js"
105
+ "types": "./lib/index.d.ts",
106
+ "default": "./lib/index.js"
108
107
  },
109
108
  "require": {
110
- "types": "./lib/lib/helpers/parseOptionFlags.d.cts",
111
- "default": "./lib/lib/helpers/parseOptionFlags.cjs"
109
+ "types": "./lib/index.d.cts",
110
+ "default": "./lib/index.cjs"
112
111
  }
113
112
  },
114
113
  "./lib/types": {
115
114
  "import": {
116
- "types": "./lib/lib/types.d.ts",
117
- "default": "./lib/lib/types.js"
115
+ "types": "./lib/index.d.ts",
116
+ "default": "./lib/index.js"
118
117
  },
119
118
  "require": {
120
- "types": "./lib/lib/types.d.cts",
121
- "default": "./lib/lib/types.cjs"
119
+ "types": "./lib/index.d.cts",
120
+ "default": "./lib/index.cjs"
122
121
  }
123
122
  }
124
123
  },
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"
124
+ "dependencies": {
125
+ "ansi-colors": "^4.1.3",
126
+ "es-toolkit": "^1.45.1"
127
+ },
128
+ "publishConfig": {
129
+ "access": "public"
167
130
  },
131
+ "license": "MIT",
168
132
  "author": {
169
133
  "name": "Benjamin Møller Jensen",
170
134
  "email": "bemoje@bemoje.net",
171
135
  "url": "https://github.com/bemoje/"
172
136
  },
173
- "license": "MIT"
137
+ "repository": {
138
+ "type": "git",
139
+ "url": "git+https://github.com/bemoje/mono.git",
140
+ "directory": "libs/cli"
141
+ }
174
142
  }