@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@collectui/cli",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "description": "One CLI for every shadcn library on CollectUI Dash — login once, configure registries & MCP, scaffold agent-ready projects.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -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 没自动装(--no-install / configure 模式)才提示安装;
257
- // 自动装过的场景不再出现——装完了还叫人装是语义矛盾(2026-12-06 用户反馈)
258
- install ? null : `${pm} 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),