refactor: decentralize turbo task config — move compile/dist to workspace turbo.json

Sink package-specific tasks from root turbo.json into workspace configs:
- compile/compile:* → apps/server/turbo.json (only server compiles binaries)
- dist/dist:* → apps/desktop/turbo.json (only desktop distributes)
- Cross-package deps (desktop→server#compile) owned by desktop config
- Desktop dist scripts no longer bypass Turbo by calling bun run build

Root turbo.json reduced from 16 to 4 generic lifecycle tasks.
This commit is contained in:
2026-02-08 23:26:24 +08:00
parent 9f38636d76
commit b149cc5dc0
4 changed files with 24 additions and 32 deletions

View File

@@ -6,34 +6,6 @@
"build": {
"dependsOn": ["^build"]
},
"compile": {
"dependsOn": ["build"]
},
"compile:linux": {
"dependsOn": ["build"]
},
"compile:mac": {
"dependsOn": ["build"]
},
"compile:win": {
"dependsOn": ["build"]
},
"dist": {},
"dist:linux": {},
"dist:mac": {},
"dist:win": {},
"@furtherverse/desktop#dist": {
"dependsOn": ["@furtherverse/server#compile"]
},
"@furtherverse/desktop#dist:linux": {
"dependsOn": ["@furtherverse/server#compile:linux"]
},
"@furtherverse/desktop#dist:mac": {
"dependsOn": ["@furtherverse/server#compile:mac"]
},
"@furtherverse/desktop#dist:win": {
"dependsOn": ["@furtherverse/server#compile:win"]
},
"dev": {
"cache": false,
"persistent": true