clerc 1.0.0-beta.6 → 1.0.0-beta.7
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 +2 -2
- package/dist/index.js +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __reExport, t as __export } from "./chunk-CYeTv9WL.js";
|
|
2
|
-
import { Clerc, Plugin } from "@clerc/core";
|
|
2
|
+
import { Clerc, CreateOptions, Plugin } from "@clerc/core";
|
|
3
3
|
export * from "@clerc/core";
|
|
4
4
|
|
|
5
5
|
//#region ../plugin-completions/src/index.d.ts
|
|
@@ -206,6 +206,6 @@ declare const versionPlugin: ({
|
|
|
206
206
|
declare namespace index_d_exports {
|
|
207
207
|
export { Cli, CommandHelpOptions, CompletionsPluginOptions, FriendlyErrorPluginOptions, GroupDefinition, GroupsOptions, HelpOptions, HelpPluginOptions, completionsPlugin, defaultFormatters, friendlyErrorPlugin, helpPlugin, notFoundPlugin, strictFlagsPlugin, versionPlugin };
|
|
208
208
|
}
|
|
209
|
-
declare const Cli: () => Clerc;
|
|
209
|
+
declare const Cli: (options?: CreateOptions) => Clerc;
|
|
210
210
|
//#endregion
|
|
211
211
|
export { Cli, CommandHelpOptions, CompletionsPluginOptions, FriendlyErrorPluginOptions, type GroupDefinition, type GroupsOptions, HelpOptions, HelpPluginOptions, completionsPlugin, defaultFormatters, friendlyErrorPlugin, helpPlugin, notFoundPlugin, strictFlagsPlugin, versionPlugin };
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ export * from "@clerc/plugin-strict-flags"
|
|
|
19
19
|
|
|
20
20
|
//#region src/index.ts
|
|
21
21
|
var src_exports = /* @__PURE__ */ __export({ Cli: () => Cli });
|
|
22
|
-
const Cli = () => Clerc.create().use(versionPlugin()).use(helpPlugin());
|
|
22
|
+
const Cli = (options) => Clerc.create(options).use(versionPlugin()).use(helpPlugin());
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
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.7",
|
|
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-completions": "1.0.0-beta.
|
|
49
|
-
"@clerc/plugin-help": "1.0.0-beta.
|
|
50
|
-
"@clerc/plugin-friendly-error": "1.0.0-beta.
|
|
51
|
-
"@clerc/plugin-not-found": "1.0.0-beta.
|
|
52
|
-
"@clerc/plugin-strict-flags": "1.0.0-beta.
|
|
53
|
-
"@clerc/plugin-version": "1.0.0-beta.
|
|
47
|
+
"@clerc/core": "1.0.0-beta.7",
|
|
48
|
+
"@clerc/plugin-completions": "1.0.0-beta.7",
|
|
49
|
+
"@clerc/plugin-help": "1.0.0-beta.7",
|
|
50
|
+
"@clerc/plugin-friendly-error": "1.0.0-beta.7",
|
|
51
|
+
"@clerc/plugin-not-found": "1.0.0-beta.7",
|
|
52
|
+
"@clerc/plugin-strict-flags": "1.0.0-beta.7",
|
|
53
|
+
"@clerc/plugin-version": "1.0.0-beta.7"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsdown",
|