@done-coding/cli-component 0.4.4 → 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 +1 -1
- package/es/{index-bcb8e5fb.js → index-2b31a5e8.js} +1 -1
- package/es/index.mjs +1 -1
- package/package.json +2 -2
- package/types/index.d.ts +6 -6
package/es/cli.mjs
CHANGED
package/es/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@done-coding/cli-component",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "组件命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"lodash.template": "^4.5.0",
|
|
67
67
|
"lodash.upperfirst": "^4.3.1"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "b600fbc65b532f848da439e6356405ac00d0b643"
|
|
70
70
|
}
|
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
|
/** 子命令枚举 */
|