clerc 1.0.3 → 1.1.1
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/README.md +3 -1
- package/dist/chunk-CrfGjO3a.mjs +1 -0
- package/dist/{index.d.ts → index.d.mts} +2 -1
- package/dist/index.mjs +1 -0
- package/package.json +14 -20
- package/dist/chunk-CYeTv9WL.js +0 -42
- package/dist/index.js +0 -25
package/README.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/clerc)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Documenation
|
|
6
|
+
|
|
7
|
+
Read the [documentation](https://clerc.so1ve.dev) for more details.
|
|
6
8
|
|
|
7
9
|
## 📝 License
|
|
8
10
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n&&e(r,Symbol.toStringTag,{value:`Module`}),r},a=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(var c=n(a),l=0,u=c.length,d;l<u;l++)d=c[l],!r.call(i,d)&&d!==o&&e(i,d,{get:(e=>a[e]).bind(null,d),enumerable:!(s=t(a,d))||s.enumerable});return i},o=(e,t,n)=>(a(e,t,`default`),n&&a(n,t,`default`));export{o as n,i as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-CrfGjO3a.mjs";
|
|
2
2
|
import { Clerc, CreateOptions } from "@clerc/core";
|
|
3
3
|
export * from "@clerc/core";
|
|
4
4
|
export * from "@clerc/plugin-help";
|
|
@@ -7,6 +7,7 @@ export * from "@clerc/plugin-completions";
|
|
|
7
7
|
export * from "@clerc/plugin-friendly-error";
|
|
8
8
|
export * from "@clerc/plugin-not-found";
|
|
9
9
|
export * from "@clerc/plugin-strict-flags";
|
|
10
|
+
export * from "@clerc/plugin-update-notifier";
|
|
10
11
|
|
|
11
12
|
//#region src/index.d.ts
|
|
12
13
|
declare namespace index_d_exports {
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./chunk-CrfGjO3a.mjs";import{Clerc as n}from"@clerc/core";import{helpPlugin as r}from"@clerc/plugin-help";import{versionPlugin as i}from"@clerc/plugin-version";export*from"@clerc/core";export*from"@clerc/plugin-help";export*from"@clerc/plugin-version";export*from"@clerc/plugin-completions";export*from"@clerc/plugin-friendly-error";export*from"@clerc/plugin-not-found";export*from"@clerc/plugin-strict-flags";export*from"@clerc/plugin-update-notifier";const a=e=>n.create(e).use(i()).use(r());export{a as Cli};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clerc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"author": "Ray <i@mk1.io> (https://github.com/so1ve)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Clerc: The full-featured cli library.",
|
|
@@ -24,19 +24,12 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"exports": {
|
|
27
|
-
".": "./dist/index.
|
|
28
|
-
|
|
29
|
-
"main": "./dist/index.js",
|
|
30
|
-
"module": "./dist/index.js",
|
|
31
|
-
"types": "dist/index.d.ts",
|
|
32
|
-
"typesVersions": {
|
|
33
|
-
"*": {
|
|
34
|
-
"*": [
|
|
35
|
-
"./dist/*",
|
|
36
|
-
"./dist/index.d.ts"
|
|
37
|
-
]
|
|
38
|
-
}
|
|
27
|
+
".": "./dist/index.mjs",
|
|
28
|
+
"./package.json": "./package.json"
|
|
39
29
|
},
|
|
30
|
+
"main": "./dist/index.mjs",
|
|
31
|
+
"module": "./dist/index.mjs",
|
|
32
|
+
"types": "./dist/index.d.mts",
|
|
40
33
|
"files": [
|
|
41
34
|
"dist"
|
|
42
35
|
],
|
|
@@ -44,12 +37,13 @@
|
|
|
44
37
|
"access": "public"
|
|
45
38
|
},
|
|
46
39
|
"dependencies": {
|
|
47
|
-
"@clerc/core": "1.
|
|
48
|
-
"@clerc/plugin-completions": "1.
|
|
49
|
-
"@clerc/plugin-
|
|
50
|
-
"@clerc/plugin-not-found": "1.
|
|
51
|
-
"@clerc/plugin-strict-flags": "1.
|
|
52
|
-
"@clerc/plugin-
|
|
53
|
-
"@clerc/plugin-
|
|
40
|
+
"@clerc/core": "1.1.1",
|
|
41
|
+
"@clerc/plugin-completions": "1.1.1",
|
|
42
|
+
"@clerc/plugin-help": "1.1.1",
|
|
43
|
+
"@clerc/plugin-not-found": "1.1.1",
|
|
44
|
+
"@clerc/plugin-strict-flags": "1.1.1",
|
|
45
|
+
"@clerc/plugin-friendly-error": "1.1.1",
|
|
46
|
+
"@clerc/plugin-update-notifier": "1.1.1",
|
|
47
|
+
"@clerc/plugin-version": "1.1.1"
|
|
54
48
|
}
|
|
55
49
|
}
|
package/dist/chunk-CYeTv9WL.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
|
|
6
|
-
export * from "@clerc/core"
|
|
7
|
-
|
|
8
|
-
export * from "@clerc/plugin-help"
|
|
9
|
-
|
|
10
|
-
export * from "@clerc/plugin-version"
|
|
11
|
-
|
|
12
|
-
export * from "@clerc/plugin-completions"
|
|
13
|
-
|
|
14
|
-
export * from "@clerc/plugin-friendly-error"
|
|
15
|
-
|
|
16
|
-
export * from "@clerc/plugin-not-found"
|
|
17
|
-
|
|
18
|
-
export * from "@clerc/plugin-strict-flags"
|
|
19
|
-
|
|
20
|
-
//#region src/index.ts
|
|
21
|
-
var src_exports = /* @__PURE__ */ __export({ Cli: () => Cli });
|
|
22
|
-
const Cli = (options) => Clerc.create(options).use(versionPlugin()).use(helpPlugin());
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
export { Cli };
|