@collectui/cli 0.2.35 → 0.2.36
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/setup.mjs +5 -4
package/package.json
CHANGED
package/src/commands/setup.mjs
CHANGED
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
planManifest,
|
|
16
16
|
planScaffold,
|
|
17
17
|
runShadcnCommand,
|
|
18
|
-
SHADCN_TEMPLATES,
|
|
19
18
|
} from "../scaffold.mjs";
|
|
20
19
|
import { includeDashMcp, chooseClients, collectShadcnFlags, detectClientApp, selectLibs } from "./common.mjs";
|
|
21
20
|
|
|
@@ -253,9 +252,11 @@ export async function runSetup({ flags, rest = [], reporter, mode }) {
|
|
|
253
252
|
mcpServers: mcpEntries.map((e) => e.serverName),
|
|
254
253
|
next: [
|
|
255
254
|
mode === "init" && !hasComponents ? `cd ${cs.show(target)}` : null,
|
|
256
|
-
// 只有 CLI
|
|
257
|
-
//
|
|
258
|
-
install
|
|
255
|
+
// 只有 CLI 没自动装、且项目里确实没有 node_modules 才提示安装
|
|
256
|
+
// (configure 到已装过依赖的老项目不该再出现这行——2026-12-06 实报)
|
|
257
|
+
install || existsSync(join(target, "node_modules"))
|
|
258
|
+
? null
|
|
259
|
+
: `${pm} install`,
|
|
259
260
|
// 按实际选的库逐个给 add 示例——用户配了几个库就列几行
|
|
260
261
|
...units.slice(0, 3).map((u) => `cui add ${u.site} <component>`),
|
|
261
262
|
].filter(Boolean),
|