Stopping dev.mjs sent SIGTERM to each service and moved on, so a slow service, or anything a service spawned (run workers, Next.js workers), outlived it once the supervisor killed dev.mjs after 20 seconds. The next start then found the old API answering and reused it: a rebuild kept running old code. - Each service runs in its own process group. Stopping signals the group, waits up to 10 seconds, then kills what remains. - Under the LaunchAgent supervisor, a service already answering is refused instead of adopted (WF_LOCAL_REUSE_SERVICES=false). - npm test, and so CI, now runs scripts/*.test.mjs. The POC check test that needs the Mac's Homebrew toolchain skips where there is none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55 lines
2.1 KiB
JSON
55 lines
2.1 KiB
JSON
{
|
|
"name": "wishforge",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
"workspaces": [
|
|
"apps/api",
|
|
"apps/web",
|
|
"apps/worker",
|
|
"apps/runner",
|
|
"apps/git-service",
|
|
"apps/provisioner",
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"dev": "npm run dev -w @wishforge/api",
|
|
"dev:web": "npm run dev -w @wishforge/web",
|
|
"dev:all": "node scripts/dev.mjs",
|
|
"dev:worker": "node --env-file=.env.local --import tsx apps/worker/src/main.ts",
|
|
"dev:git": "node --env-file=.env.local --import tsx apps/git-service/src/main.ts",
|
|
"dev:provisioner": "node --env-file=.env.local apps/provisioner/main.mjs",
|
|
"dev:ide": "node scripts/dev-ide.mjs",
|
|
"ide:install": "npm ci --prefix apps/ide",
|
|
"ide:build": "npm run build --prefix apps/ide",
|
|
"build": "npm run build --workspaces --if-present",
|
|
"build:services": "node scripts/build-services.mjs",
|
|
"typecheck": "npm run typecheck --workspaces --if-present && tsc --noEmit -p tests",
|
|
"test": "vitest run && node --test apps/provisioner/test/*.test.mjs scripts/*.test.mjs",
|
|
"test:integration": "WF_INTEGRATION=1 vitest run tests/integration",
|
|
"test:ide": "node --test apps/ide/gateway/test/*.test.mjs apps/ide/collaboration/test/*.test.mjs apps/ide/collaboration/test/*.test.cjs apps/ide/policy/test/*.test.cjs",
|
|
"db:migrate": "tsx apps/api/src/db/migrate.ts",
|
|
"db:seed": "tsx apps/api/src/db/seed.ts",
|
|
"setup:local": "node scripts/setup-local.mjs",
|
|
"local:status": "node scripts/local-poc-service.mjs status",
|
|
"local:doctor": "node scripts/local-poc-service.mjs doctor",
|
|
"local:network": "node scripts/configure-local-network.mjs",
|
|
"local:build": "node scripts/build-local-web.mjs",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"tenant:create": "tsx scripts/provision-tenant.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"@types/pg": "^8.15.0",
|
|
"esbuild": "^0.28.2",
|
|
"prettier": "3.9.8",
|
|
"tsx": "^4.20.0",
|
|
"typescript": "~5.9.3",
|
|
"vitest": "^4.0.0"
|
|
}
|
|
}
|