@lenne.tech/cli 1.38.0 → 1.38.1

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.
@@ -56,8 +56,12 @@ const PruneCommand = {
56
56
  const mainLayout = (0, dev_project_1.resolveLayout)(mainRepoRoot, filesystem);
57
57
  const slug = (0, dev_identity_1.buildIdentity)(mainRepoRoot).slug;
58
58
  const projectDevDb = (0, dev_project_1.deriveDbName)(mainLayout.apiDir, slug);
59
- const observed = mainLayout.apiDir ? (0, dev_ticket_1.listDatabaseNames)(undefined, [mainLayout.apiDir, mainRepoRoot]) : null;
60
- if (mainLayout.apiDir && observed === null) {
59
+ // Always observe the smoke-test sweep is GLOBAL (reserved prefix), so it
60
+ // must work from any project, even one without an own API (e.g. the CLI
61
+ // repo itself). mongosh against the local default URI needs no project
62
+ // driver; the api dir merely improves the driver fallback when present.
63
+ const observed = (0, dev_ticket_1.listDatabaseNames)(undefined, [mainLayout.apiDir, mainRepoRoot].filter(Boolean));
64
+ if (observed === null) {
61
65
  warning('Could not list databases (mongosh missing or MongoDB unreachable) — only the registry is pruned.');
62
66
  }
63
67
  const plan = (0, dev_prune_1.collectDevPrunePlan)({
@@ -454,7 +454,9 @@ const UpCommand = {
454
454
  const plan = (0, dev_prune_1.collectDevPrunePlan)({
455
455
  loadRegistry: dev_state_1.loadRegistry,
456
456
  mainRepoRoot,
457
- observedDbNames: mainLayout.apiDir ? (0, dev_ticket_1.listDatabaseNames)(undefined, [mainLayout.apiDir, mainRepoRoot]) : null,
457
+ // Always observe (not only with an own api dir): the smoke-test sweep is
458
+ // global, and mongosh against the local default URI needs no project driver.
459
+ observedDbNames: (0, dev_ticket_1.listDatabaseNames)(undefined, [mainLayout.apiDir, mainRepoRoot].filter(Boolean)),
458
460
  projectDevDb: (0, dev_project_1.deriveDbName)(mainLayout.apiDir, baseSlug),
459
461
  slug: baseSlug,
460
462
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/cli",
3
- "version": "1.38.0",
3
+ "version": "1.38.1",
4
4
  "description": "lenne.Tech CLI: lt",
5
5
  "keywords": [
6
6
  "lenne.Tech",