@done-coding/cli-component 0.4.11-alpha.2 → 0.4.11
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-6ad03f41.js → index-c59b8101.js} +9 -9
- package/es/index.mjs +1 -1
- package/package.json +5 -5
package/es/cli.mjs
CHANGED
|
@@ -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
|
|
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";
|
|
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.11
|
|
20
|
+
version: "0.4.11",
|
|
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
|
|
89
|
+
const b = {
|
|
90
90
|
...r,
|
|
91
91
|
mode: C.APPEND,
|
|
92
92
|
...d
|
|
93
93
|
};
|
|
94
|
-
await E(
|
|
94
|
+
await E(b);
|
|
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
|
|
99
|
+
const b = {
|
|
100
100
|
...i,
|
|
101
101
|
mode: C.OVERWRITE,
|
|
102
102
|
...d
|
|
103
103
|
};
|
|
104
|
-
await E(
|
|
104
|
+
await E(b);
|
|
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
|
-
[
|
|
144
|
-
[
|
|
145
|
-
[
|
|
143
|
+
[h.greenBright("名称")]: r,
|
|
144
|
+
[h.greenBright("带系列名称")]: i,
|
|
145
|
+
[h.greenBright("绝对路径")]: p.resolve(
|
|
146
146
|
n.componentDir,
|
|
147
147
|
d
|
|
148
148
|
)
|
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.11
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "组件命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@done-coding/cli-inject": "0.5.22
|
|
41
|
+
"@done-coding/cli-inject": "0.5.22",
|
|
42
42
|
"@types/lodash.camelcase": "^4.3.8",
|
|
43
43
|
"@types/lodash.kebabcase": "^4.1.8",
|
|
44
44
|
"@types/lodash.lowerfirst": "^4.3.8",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"vite-plugin-dts": "^3.6.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@done-coding/cli-template": "0.8.9
|
|
55
|
-
"@done-coding/cli-utils": "0.8.3
|
|
54
|
+
"@done-coding/cli-template": "0.8.9",
|
|
55
|
+
"@done-coding/cli-utils": "0.8.3",
|
|
56
56
|
"lodash.camelcase": "^4.3.0",
|
|
57
57
|
"lodash.kebabcase": "^4.1.1",
|
|
58
58
|
"lodash.lowerfirst": "^4.3.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=18.0.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "4893b466954ef5925151d8dfc8fc8aa558ce654c"
|
|
66
66
|
}
|