done-coding-component 0.4.2 → 0.4.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.
package/es/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as m } from "./index-7763f7f4.js";
2
+ import { c as m } from "./index-2b31a5e8.js";
3
3
  import "node:path";
4
4
  import "node:fs";
5
5
  import "@done-coding/cli-utils";
@@ -17,7 +17,7 @@ const K = (e, t) => {
17
17
  保留名称: ${n.join(",")}`), process.exit(1)) : !0;
18
18
  }, g = {
19
19
  name: "@done-coding/cli-component",
20
- version: "0.4.2",
20
+ version: "0.4.5",
21
21
  description: "组件命令行工具",
22
22
  bin: {
23
23
  "dc-component": "es/cli.mjs"
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-7763f7f4.js";
2
+ import { S as u, a as b, h as c } from "./index-2b31a5e8.js";
3
3
  import "node:path";
4
4
  import "node:fs";
5
5
  import "@done-coding/cli-utils";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "done-coding-component",
3
- "version": "0.4.2",
3
+ "version": "0.4.5",
4
4
  "description": "组件命令行工具",
5
5
  "private": false,
6
6
  "module": "es/index.mjs",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "repository": {
22
22
  "type": "git",
23
- "url": "https://gitee.com/justsosu/done-coding-cli.git",
23
+ "url": "https://gitee.com/done-coding/done-coding-cli.git",
24
24
  "directory": "packages/component"
25
25
  },
26
26
  "publishConfig": {
@@ -31,7 +31,7 @@
31
31
  "license": "MIT",
32
32
  "sideEffects": false,
33
33
  "devDependencies": {
34
- "@done-coding/cli-inject": "^0.5.15",
34
+ "@done-coding/cli-inject": "0.5.17",
35
35
  "@types/lodash.camelcase": "^4.3.8",
36
36
  "@types/lodash.kebabcase": "^4.1.8",
37
37
  "@types/lodash.lowerfirst": "^4.3.8",
@@ -48,14 +48,14 @@
48
48
  "node": ">=18.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "@done-coding/cli-template": "^0.8.2",
52
- "@done-coding/cli-utils": "^0.7.6",
51
+ "@done-coding/cli-template": "0.8.4",
52
+ "@done-coding/cli-utils": "0.7.7",
53
53
  "lodash.camelcase": "^4.3.0",
54
54
  "lodash.kebabcase": "^4.1.1",
55
55
  "lodash.lowerfirst": "^4.3.1",
56
56
  "lodash.template": "^4.5.0",
57
57
  "lodash.upperfirst": "^4.3.1"
58
58
  },
59
- "gitHead": "30721548bad7e10aaf8bf46762925954f40c5fd3",
59
+ "gitHead": "b600fbc65b532f848da439e6356405ac00d0b643",
60
60
  "scripts": {}
61
61
  }
package/types/index.d.ts CHANGED
@@ -2,7 +2,11 @@ import { CliHandlerArgv } from '@done-coding/cli-utils';
2
2
  import { CommandModule } from 'yargs';
3
3
  import type { CompileOptions } from '@done-coding/cli-template';
4
4
 
5
- export declare interface AddOptions {
5
+ export declare interface AddOptions extends CommonOptions {
6
+ }
7
+
8
+ /** 组件通用选项 */
9
+ export declare interface CommonOptions {
6
10
  /**
7
11
  * 组件名
8
12
  */
@@ -34,11 +38,7 @@ export declare const crateAsSubcommand: () => CommandModule<{}, {}>;
34
38
 
35
39
  export declare const handler: (command: SubcommandEnum, argv: CliHandlerArgv<any>) => Promise<void>;
36
40
 
37
- export declare interface RemoveOptions {
38
- /**
39
- * 组件名
40
- */
41
- name?: string;
41
+ export declare interface RemoveOptions extends Partial<CommonOptions> {
42
42
  }
43
43
 
44
44
  /** 子命令枚举 */