wishforge-ide/package.json
eust-w d7d2cb705d feat: run images from built services instead of transpiling at start-up (FR-K5)
scripts/build-services.mjs compiles the API, its migration runner, the worker,
the Runner and the platform Git service into single ESM files under dist/.
Workspace packages are compiled in, everything else loads from node_modules,
and esbuild applies the transform tsx applied before, so behaviour does not
change. The Temporal workflow bundle is built at the same time and the worker
uses it when present instead of bundling at start-up.

The runtime image builds the services and runs dist/*/main.mjs; the
Kubernetes provisioner starts sandboxes with dist/worker/main.mjs, and
migrations run as node dist/api/migrate.mjs. esbuild is now a declared dev
dependency. A test builds everything and checks that each entry point loads
all its imports and reaches its own configuration checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 20:15:42 +08:00

51 lines
1.8 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",
"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",
"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"
}
}