clerc 1.0.3 → 1.1.0

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 CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  [![NPM version](https://img.shields.io/npm/v/clerc?color=a1b858&label=)](https://www.npmjs.com/package/clerc)
4
4
 
5
- See [Clerc](https://github.com/clercjs/clerc) for documentation.
5
+ ## Documenation
6
+
7
+ Read the [documentation](https://clerc.so1ve.dev) for more details.
6
8
 
7
9
  ## 📝 License
8
10
 
@@ -3,7 +3,7 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (all, symbols) => {
6
+ var __exportAll = (all, symbols) => {
7
7
  let target = {};
8
8
  for (var name in all) {
9
9
  __defProp(target, name, {
@@ -30,13 +30,7 @@ var __copyProps = (to, from, except, desc) => {
30
30
  }
31
31
  return to;
32
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
- };
33
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
40
34
 
41
35
  //#endregion
42
- export { __reExport as n, __export as t };
36
+ export { __reExport as n, __exportAll as t };
@@ -1,4 +1,4 @@
1
- import { n as __reExport, t as __export } from "./chunk-CYeTv9WL.js";
1
+ import { n as __reExport, t as __exportAll } from "./chunk-BwXVQOgl.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 {
@@ -1,4 +1,4 @@
1
- import { n as __reExport, t as __export } from "./chunk-CYeTv9WL.js";
1
+ import { n as __reExport, t as __exportAll } from "./chunk-BwXVQOgl.mjs";
2
2
  import { Clerc } from "@clerc/core";
3
3
  import { helpPlugin } from "@clerc/plugin-help";
4
4
  import { versionPlugin } from "@clerc/plugin-version";
@@ -17,8 +17,10 @@ export * from "@clerc/plugin-not-found"
17
17
 
18
18
  export * from "@clerc/plugin-strict-flags"
19
19
 
20
+ export * from "@clerc/plugin-update-notifier"
21
+
20
22
  //#region src/index.ts
21
- var src_exports = /* @__PURE__ */ __export({ Cli: () => Cli });
23
+ var src_exports = /* @__PURE__ */ __exportAll({ Cli: () => Cli });
22
24
  const Cli = (options) => Clerc.create(options).use(versionPlugin()).use(helpPlugin());
23
25
 
24
26
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clerc",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
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.js"
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.0.3",
48
- "@clerc/plugin-completions": "1.0.3",
49
- "@clerc/plugin-friendly-error": "1.0.3",
50
- "@clerc/plugin-not-found": "1.0.3",
51
- "@clerc/plugin-strict-flags": "1.0.3",
52
- "@clerc/plugin-version": "1.0.3",
53
- "@clerc/plugin-help": "1.0.3"
40
+ "@clerc/core": "1.1.0",
41
+ "@clerc/plugin-completions": "1.1.0",
42
+ "@clerc/plugin-help": "1.1.0",
43
+ "@clerc/plugin-strict-flags": "1.1.0",
44
+ "@clerc/plugin-friendly-error": "1.1.0",
45
+ "@clerc/plugin-not-found": "1.1.0",
46
+ "@clerc/plugin-version": "1.1.0",
47
+ "@clerc/plugin-update-notifier": "1.1.0"
54
48
  }
55
49
  }