@collectui/cli 0.2.37 → 0.2.38

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.37",
3
+ "version": "0.2.38",
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",
@@ -287,7 +287,9 @@ export async function runSetup({ flags, rest = [], reporter, mode }) {
287
287
  mcpClients: clients,
288
288
  mcpServers: mcpEntries.map((e) => e.serverName),
289
289
  next: [
290
- mode === "init" && !hasComponents ? `cd ${cs.show(target)}` : null,
290
+ // 不在目标目录才提示 cd(在项目里跑就不必;configure 远处项目同样给——
291
+ // 2026-12-06 用户定案)
292
+ process.cwd() !== target ? `cd ${cs.show(target)}` : null,
291
293
  // 只有 CLI 没自动装、且项目里确实没有 node_modules 才提示安装
292
294
  // (configure 到已装过依赖的老项目不该再出现这行——2026-12-06 实报)
293
295
  install || existsSync(join(target, "node_modules"))