chore(turbo): simplify and optimize monorepo configuration

This commit is contained in:
2026-02-07 16:35:30 +08:00
parent adb14cff77
commit 2b3026cf69
3 changed files with 13 additions and 13 deletions

View File

@@ -3,10 +3,10 @@
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"env": ["NODE_ENV", "VITE_*"],
"outputs": [".output/**"] "outputs": [".output/**"]
}, },
"compile": { "compile": {
"dependsOn": ["build"],
"outputs": ["out/**"] "outputs": ["out/**"]
} }
} }

View File

@@ -10,7 +10,6 @@
"scripts": { "scripts": {
"build": "turbo run build", "build": "turbo run build",
"compile": "turbo run compile", "compile": "turbo run compile",
"deploy": "turbo run deploy",
"dev": "turbo run dev", "dev": "turbo run dev",
"fix": "turbo run fix", "fix": "turbo run fix",
"typecheck": "turbo run typecheck" "typecheck": "turbo run typecheck"

View File

@@ -1,27 +1,28 @@
{ {
"$schema": "./node_modules/turbo/schema.json", "$schema": "./node_modules/turbo/schema.json",
"dangerouslyDisablePackageManagerCheck": true, "dangerouslyDisablePackageManagerCheck": true,
"globalDependencies": [ "globalDependencies": ["bun.lock"],
"package.json",
"bun.lock",
"turbo.json",
"biome.json"
],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["^build"], "dependsOn": ["^build"]
"outputs": ["dist/**"] },
"compile": {
"dependsOn": ["build"]
}, },
"dev": { "dev": {
"cache": false, "cache": false,
"persistent": true "persistent": true
}, },
"fix": { "fix": {
"outputs": [] "cache": false
}, },
"typecheck": { "typecheck": {
"dependsOn": ["^typecheck"], "inputs": [
"inputs": ["tsconfig.json", "tsconfig.*.json", "**/*.{ts,tsx}"], "package.json",
"tsconfig.json",
"tsconfig.*.json",
"**/*.{ts,tsx,d.ts}"
],
"outputs": [] "outputs": []
} }
}, },