@mars-stack/cli 8.0.3 → 8.0.4

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": "@mars-stack/cli",
3
- "version": "8.0.3",
3
+ "version": "8.0.4",
4
4
  "description": "MARS CLI: scaffold, configure, and maintain SaaS apps",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -51,7 +51,7 @@
51
51
  "@types/node": "^25.5.0",
52
52
  "@types/prompts": "^2.4.0",
53
53
  "tsup": "^8.0.0",
54
- "typescript": "^5.7.0",
54
+ "typescript": "^6.0.2",
55
55
  "vitest": "^4.1.2"
56
56
  }
57
57
  }
@@ -10,6 +10,8 @@ Browser-level tests for user-visible behaviour. Run: `yarn test:e2e` from the pr
10
10
 
11
11
  Monorepo CI runs this on pull requests via the `template-e2e` job in `.github/workflows/ci.yml` (Postgres service + `E2E_USE_CI_SERVER=1` + `scripts/start-e2e-server.mjs`).
12
12
 
13
+ **Local default web server:** `playwright-web-server.mjs` runs `ensure-db`, then **`npx prisma db seed`**, then `yarn dev` — same seeded-user assumption as CI (`user@example.com` / `Password123!` from `scripts/seed.ts`). You no longer need a separate manual `yarn db:seed` before `yarn test:e2e` on a fresh scaffold.
14
+
13
15
  ## Kitchen-sink CLI catalog (MARS-041, Option A)
14
16
 
15
17
  Full **`mars generate`** surface is exercised against a **materialized kitchen-sink fixture** (not the bare template tree):
@@ -74,7 +74,7 @@
74
74
  "prisma": "^7.6.0",
75
75
  "tailwindcss": "^4.0.0",
76
76
  "tsx": "^4.0.0",
77
- "typescript": "^5.7.0",
77
+ "typescript": "^6.0.2",
78
78
  "vitest": "^4.1.2"
79
79
  }
80
80
  }
@@ -10,7 +10,8 @@ import { fileURLToPath } from 'node:url';
10
10
 
11
11
  const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..');
12
12
 
13
- const child = spawn('sh', ['-c', 'node scripts/ensure-db.mjs && yarn dev'], {
13
+ /** Match CI `start-e2e-server.mjs`: seed so smoke tests find `user@example.com` without a manual `db:seed`. */
14
+ const child = spawn('sh', ['-c', 'node scripts/ensure-db.mjs && npx prisma db seed && yarn dev'], {
14
15
  cwd: ROOT,
15
16
  stdio: 'inherit',
16
17
  shell: false,
@@ -77,10 +77,12 @@ export default function Settings() {
77
77
  }
78
78
  }, [user, fetchSessions]);
79
79
 
80
- if (!nameInitialized && user?.name) {
81
- setName(user.name);
82
- setNameInitialized(true);
83
- }
80
+ useEffect(() => {
81
+ if (!nameInitialized && user?.name) {
82
+ setName(user.name);
83
+ setNameInitialized(true);
84
+ }
85
+ }, [nameInitialized, user?.name]);
84
86
 
85
87
  if (authLoading) {
86
88
  return (