🐛 fix(build): remove recursive build scripts from parent packages

Parent workspace packages (apps/*/package.json, games/*/package.json) had
build scripts that called 'turbo run build' or 'pnpm run --recursive build',
creating infinite recursion when root turbo orchestrates builds.

When root turbo runs 'build', it finds packages with build scripts and
executes them. If those scripts also call 'turbo run build', it spawns
another turbo process → infinite loop.

Changes:
- Removed 'build' script from 7 parent packages (calendar, contacts, zitare, picture, presi, mana-games, voxel-lava)
- Also removed redundant 'clean', 'lint', 'type-check' scripts where they had recursive calls
- Root turbo.json already handles orchestration of these tasks

This follows the guideline in CLAUDE.md:
> Parent workspace packages must NEVER have scripts that call turbo run
> for tasks that turbo orchestrates from the root.

Fixes CI build timeout (was running for 10+ minutes with infinite task spawning).
This commit is contained in:
Wuesteon 2025-12-04 01:59:53 +01:00
parent 88c10e4ef7
commit e32e4b1b3a
8 changed files with 1394 additions and 15 deletions

View file

@ -9,8 +9,6 @@
"dev:web": "pnpm --filter @calendar/web dev",
"dev:landing": "pnpm --filter @calendar/landing dev",
"dev:mobile": "pnpm --filter @calendar/mobile dev",
"build": "turbo run build",
"clean": "turbo run clean",
"db:push": "pnpm --filter @calendar/backend db:push",
"db:studio": "pnpm --filter @calendar/backend db:studio",
"db:seed": "pnpm --filter @calendar/backend db:seed"

View file

@ -9,8 +9,6 @@
"dev:web": "pnpm --filter @contacts/web dev",
"dev:landing": "pnpm --filter @contacts/landing dev",
"dev:mobile": "pnpm --filter @contacts/mobile dev",
"build": "turbo run build",
"clean": "turbo run clean",
"db:push": "pnpm --filter @contacts/backend db:push",
"db:studio": "pnpm --filter @contacts/backend db:studio",
"db:seed": "pnpm --filter @contacts/backend db:seed"

View file

@ -7,7 +7,6 @@
"dev:mobile": "pnpm --filter @picture/mobile dev",
"dev:web": "pnpm --filter @picture/web dev",
"dev:landing": "pnpm --filter @picture/landing dev",
"build": "pnpm run --recursive build",
"build:mobile": "pnpm --filter @picture/mobile build:prod",
"build:web": "pnpm --filter @picture/web build",
"build:landing": "pnpm --filter @picture/landing build",

View file

@ -4,9 +4,6 @@
"private": true,
"scripts": {
"dev": "pnpm --filter '@presi/*' run dev",
"build": "pnpm --filter '@presi/*' run build",
"lint": "pnpm --filter '@presi/*' run lint",
"type-check": "pnpm --filter '@presi/*' run type-check",
"db:push": "pnpm --filter @presi/backend db:push",
"db:studio": "pnpm --filter @presi/backend db:studio"
},

View file

@ -9,8 +9,6 @@
"dev:web": "pnpm --filter @zitare/web dev",
"dev:landing": "pnpm --filter @zitare/landing dev",
"dev:mobile": "pnpm --filter @zitare/mobile dev",
"build": "turbo run build",
"clean": "turbo run clean",
"db:push": "pnpm --filter @zitare/backend db:push",
"db:studio": "pnpm --filter @zitare/backend db:studio",
"db:seed": "pnpm --filter @zitare/backend db:seed"