done-coding-component 0.4.12 → 0.5.2-alpha.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
@@ -188,11 +188,11 @@ node es/cli.mjs --help
188
188
 
189
189
  ## 许可证
190
190
 
191
- MIT © [JustSoSu](https://gitee.com/done-coding)
191
+ MIT © [done-coding](https://github.com/done-coding)
192
192
 
193
193
  ## 相关链接
194
194
 
195
195
  - [主 CLI 工具](https://www.npmjs.com/package/@done-coding/cli)
196
196
  - [模板处理工具](https://www.npmjs.com/package/@done-coding/cli-template) - 本包依赖的模板引擎
197
- - [Gitee 仓库](https://gitee.com/done-coding/done-coding-cli)
197
+ - [Github 仓库](https://github.com/done-coding/done-coding-cli)
198
198
  - [更新日志](./CHANGELOG.md)
package/es/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as m } from "./index-6793b622.js";
2
+ import { c as m } from "./index-c5b0d489.js";
3
3
  import "node:path";
4
4
  import "node:fs";
5
5
  import "@done-coding/cli-utils";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import p from "node:path";
3
3
  import l from "node:fs";
4
- import { outputConsole as m, json5 as L, chalk as h, xPrompts as w, createSubcommand as O, getRootScriptName as V, createMainCommand as J } from "@done-coding/cli-utils";
4
+ import { outputConsole as m, json5 as L, chalk as b, xPrompts as w, createSubcommand as O, getRootScriptName as V, createMainCommand as J } from "@done-coding/cli-utils";
5
5
  import x from "lodash.upperfirst";
6
6
  import S from "lodash.camelcase";
7
7
  import v from "lodash.kebabcase";
@@ -17,7 +17,7 @@ const _ = (e, t) => {
17
17
  保留名称: ${n.join(",")}`), process.exit(1)) : !0;
18
18
  }, g = {
19
19
  name: "@done-coding/cli-component",
20
- version: "0.4.12",
20
+ version: "0.5.2-alpha.0",
21
21
  description: "组件命令行工具",
22
22
  bin: {
23
23
  "dc-component": "es/cli.mjs"
@@ -86,22 +86,22 @@ const _ = (e, t) => {
86
86
  if (r) {
87
87
  const s = r;
88
88
  s != null && s.input && (s.input = f(s.input)(o)), s != null && s.output && (s.output = f(s.output)(o));
89
- const b = {
89
+ const h = {
90
90
  ...r,
91
91
  mode: C.APPEND,
92
92
  ...d
93
93
  };
94
- await E(b);
94
+ await E(h);
95
95
  }
96
96
  if (i) {
97
97
  const s = i;
98
98
  s != null && s.input && (s.input = f(s.input)(o)), s != null && s.output && (s.output = f(s.output)(o));
99
- const b = {
99
+ const h = {
100
100
  ...i,
101
101
  mode: C.OVERWRITE,
102
102
  ...d
103
103
  };
104
- await E(b);
104
+ await E(h);
105
105
  }
106
106
  }
107
107
  }, Z = () => ({
@@ -140,9 +140,9 @@ const _ = (e, t) => {
140
140
  });
141
141
  if (m.table(
142
142
  a.map(({ name: r, fullName: i, nameKebab: d }) => ({
143
- [h.greenBright("名称")]: r,
144
- [h.greenBright("带系列名称")]: i,
145
- [h.greenBright("绝对路径")]: p.resolve(
143
+ [b.greenBright("名称")]: r,
144
+ [b.greenBright("带系列名称")]: i,
145
+ [b.greenBright("绝对路径")]: p.resolve(
146
146
  n.componentDir,
147
147
  d
148
148
  )
package/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { S as u, a as b, h as c } from "./index-6793b622.js";
2
+ import { S as u, a as b, h as c } from "./index-c5b0d489.js";
3
3
  import "node:path";
4
4
  import "node:fs";
5
5
  import "@done-coding/cli-utils";
@@ -11,6 +11,6 @@ import "lodash.template";
11
11
  import "@done-coding/cli-template";
12
12
  export {
13
13
  u as SubcommandEnum,
14
- b as crateAsSubcommand,
14
+ b as createAsSubcommand,
15
15
  c as handler
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "done-coding-component",
3
- "version": "0.4.12",
3
+ "version": "0.5.2-alpha.0",
4
4
  "description": "组件命令行工具",
5
5
  "private": false,
6
6
  "module": "es/index.mjs",
@@ -31,7 +31,7 @@
31
31
  "license": "MIT",
32
32
  "sideEffects": false,
33
33
  "devDependencies": {
34
- "@done-coding/cli-inject": "0.5.23",
34
+ "@done-coding/cli-inject": "0.6.2-alpha.0",
35
35
  "@types/lodash.camelcase": "^4.3.8",
36
36
  "@types/lodash.kebabcase": "^4.1.8",
37
37
  "@types/lodash.lowerfirst": "^4.3.8",
@@ -44,8 +44,8 @@
44
44
  "vite-plugin-dts": "^3.6.0"
45
45
  },
46
46
  "dependencies": {
47
- "@done-coding/cli-template": "0.8.10",
48
- "@done-coding/cli-utils": "0.8.4",
47
+ "@done-coding/cli-template": "0.9.2-alpha.0",
48
+ "@done-coding/cli-utils": "0.9.2-alpha.0",
49
49
  "lodash.camelcase": "^4.3.0",
50
50
  "lodash.kebabcase": "^4.1.1",
51
51
  "lodash.lowerfirst": "^4.3.1",
@@ -55,6 +55,6 @@
55
55
  "engines": {
56
56
  "node": ">=18.0.0"
57
57
  },
58
- "gitHead": "d90f437c0a716f3e62bd92a221341838710869ad",
58
+ "gitHead": "74e5c9a43a622ed90e64e8c9a67b110c22c89887",
59
59
  "scripts": {}
60
60
  }
package/types/index.d.ts CHANGED
@@ -42,7 +42,7 @@ export declare interface ConfigListItem {
42
42
  }
43
43
 
44
44
  /** 作为子命令创建 */
45
- export declare const crateAsSubcommand: () => CommandModule<{}, {}>;
45
+ export declare const createAsSubcommand: () => CommandModule<{}, {}>;
46
46
 
47
47
  export declare const handler: (command: SubcommandEnum, argv: CliHandlerArgv<any>) => Promise<void>;
48
48