clerc 1.0.0-beta.3 → 1.0.0-beta.5

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.
@@ -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 { Plugin } from "@clerc/core";
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
- export * from "@clerc/plugin-version"
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
- export { };
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",
3
+ "version": "1.0.0-beta.5",
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.3",
48
- "@clerc/plugin-completions": "1.0.0-beta.3",
49
- "@clerc/plugin-friendly-error": "1.0.0-beta.3",
50
- "@clerc/plugin-help": "1.0.0-beta.3",
51
- "@clerc/plugin-not-found": "1.0.0-beta.3",
52
- "@clerc/plugin-version": "1.0.0-beta.3",
53
- "@clerc/plugin-strict-flags": "1.0.0-beta.3"
47
+ "@clerc/core": "1.0.0-beta.5",
48
+ "@clerc/plugin-completions": "1.0.0-beta.5",
49
+ "@clerc/plugin-help": "1.0.0-beta.5",
50
+ "@clerc/plugin-friendly-error": "1.0.0-beta.5",
51
+ "@clerc/plugin-strict-flags": "1.0.0-beta.5",
52
+ "@clerc/plugin-not-found": "1.0.0-beta.5",
53
+ "@clerc/plugin-version": "1.0.0-beta.5"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "tsdown",