clerc 1.0.0-beta.3 → 1.0.0-beta.4
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-CYeTv9WL.js +42 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +14 -4
- package/package.json +8 -8
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (all, symbols) => {
|
|
7
|
+
let target = {};
|
|
8
|
+
for (var name in all) {
|
|
9
|
+
__defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
if (symbols) {
|
|
15
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
+
}
|
|
17
|
+
return target;
|
|
18
|
+
};
|
|
19
|
+
var __copyProps = (to, from, except, desc) => {
|
|
20
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
21
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
22
|
+
key = keys[i];
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
24
|
+
__defProp(to, key, {
|
|
25
|
+
get: ((k) => from[k]).bind(null, key),
|
|
26
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return to;
|
|
32
|
+
};
|
|
33
|
+
var __reExport = (target, mod, secondTarget, symbols) => {
|
|
34
|
+
if (symbols) {
|
|
35
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
36
|
+
secondTarget && __defProp(secondTarget, Symbol.toStringTag, { value: "Module" });
|
|
37
|
+
}
|
|
38
|
+
__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default");
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { __reExport as n, __export as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as __reExport, t as __export } from "./chunk-CYeTv9WL.js";
|
|
2
|
+
import { Clerc, Plugin } from "@clerc/core";
|
|
2
3
|
export * from "@clerc/core";
|
|
3
4
|
|
|
4
5
|
//#region ../plugin-completions/src/index.d.ts
|
|
@@ -202,5 +203,9 @@ declare const versionPlugin: ({
|
|
|
202
203
|
command,
|
|
203
204
|
flag
|
|
204
205
|
}?: VersionPluginOptions) => Plugin;
|
|
206
|
+
declare namespace index_d_exports {
|
|
207
|
+
export { Cli, CommandHelpOptions, CompletionsPluginOptions, FriendlyErrorPluginOptions, GroupDefinition, GroupsOptions, HelpOptions, HelpPluginOptions, completionsPlugin, defaultFormatters, friendlyErrorPlugin, helpPlugin, notFoundPlugin, strictFlagsPlugin, versionPlugin };
|
|
208
|
+
}
|
|
209
|
+
declare const Cli: () => Clerc;
|
|
205
210
|
//#endregion
|
|
206
|
-
export { CommandHelpOptions, CompletionsPluginOptions, FriendlyErrorPluginOptions, type GroupDefinition, type GroupsOptions, HelpOptions, HelpPluginOptions, completionsPlugin, defaultFormatters, friendlyErrorPlugin, helpPlugin, notFoundPlugin, strictFlagsPlugin, versionPlugin };
|
|
211
|
+
export { Cli, CommandHelpOptions, CompletionsPluginOptions, FriendlyErrorPluginOptions, type GroupDefinition, type GroupsOptions, HelpOptions, HelpPluginOptions, completionsPlugin, defaultFormatters, friendlyErrorPlugin, helpPlugin, notFoundPlugin, strictFlagsPlugin, versionPlugin };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
|
+
import { n as __reExport, t as __export } from "./chunk-CYeTv9WL.js";
|
|
2
|
+
import { Clerc } from "@clerc/core";
|
|
3
|
+
import { helpPlugin } from "@clerc/plugin-help";
|
|
4
|
+
import { versionPlugin } from "@clerc/plugin-version";
|
|
5
|
+
|
|
1
6
|
export * from "@clerc/core"
|
|
2
7
|
|
|
8
|
+
export * from "@clerc/plugin-help"
|
|
9
|
+
|
|
10
|
+
export * from "@clerc/plugin-version"
|
|
11
|
+
|
|
3
12
|
export * from "@clerc/plugin-completions"
|
|
4
13
|
|
|
5
14
|
export * from "@clerc/plugin-friendly-error"
|
|
6
15
|
|
|
7
|
-
export * from "@clerc/plugin-help"
|
|
8
|
-
|
|
9
16
|
export * from "@clerc/plugin-not-found"
|
|
10
17
|
|
|
11
18
|
export * from "@clerc/plugin-strict-flags"
|
|
12
19
|
|
|
13
|
-
|
|
20
|
+
//#region src/index.ts
|
|
21
|
+
var src_exports = /* @__PURE__ */ __export({ Cli: () => Cli });
|
|
22
|
+
const Cli = () => Clerc.create().use(versionPlugin()).use(helpPlugin());
|
|
14
23
|
|
|
15
|
-
|
|
24
|
+
//#endregion
|
|
25
|
+
export { Cli };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clerc",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.4",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Clerc: The full-featured cli library.",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@clerc/core": "1.0.0-beta.
|
|
48
|
-
"@clerc/plugin-
|
|
49
|
-
"@clerc/plugin-
|
|
50
|
-
"@clerc/plugin-
|
|
51
|
-
"@clerc/plugin-not-found": "1.0.0-beta.
|
|
52
|
-
"@clerc/plugin-
|
|
53
|
-
"@clerc/plugin-
|
|
47
|
+
"@clerc/core": "1.0.0-beta.4",
|
|
48
|
+
"@clerc/plugin-help": "1.0.0-beta.4",
|
|
49
|
+
"@clerc/plugin-completions": "1.0.0-beta.4",
|
|
50
|
+
"@clerc/plugin-strict-flags": "1.0.0-beta.4",
|
|
51
|
+
"@clerc/plugin-not-found": "1.0.0-beta.4",
|
|
52
|
+
"@clerc/plugin-friendly-error": "1.0.0-beta.4",
|
|
53
|
+
"@clerc/plugin-version": "1.0.0-beta.4"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsdown",
|