@collectui/cli 0.2.31 → 0.2.32
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/package.json +1 -1
- package/src/commands/common.mjs +6 -1
package/package.json
CHANGED
package/src/commands/common.mjs
CHANGED
|
@@ -74,7 +74,12 @@ export async function selectLibs({ flags, me, reporter }) {
|
|
|
74
74
|
message: "Which libraries do you want to configure?",
|
|
75
75
|
options: owned.map((lib) => ({
|
|
76
76
|
value: lib.site,
|
|
77
|
-
|
|
77
|
+
// 显示名与 slug 同名(不区分大小写)只显示一个,不重复;
|
|
78
|
+
// 不同(如 React Bits/bits)才带 (slug)——slug 是 --libs 取值,有信息量
|
|
79
|
+
label:
|
|
80
|
+
lib.siteName.toLowerCase() === lib.site.toLowerCase()
|
|
81
|
+
? lib.siteName
|
|
82
|
+
: `${lib.siteName} (${lib.site})`,
|
|
78
83
|
})),
|
|
79
84
|
initialValues: preferred.length
|
|
80
85
|
? preferred
|