diff --git a/turbo.json b/turbo.json index f86e5320..8115b370 100644 --- a/turbo.json +++ b/turbo.json @@ -1,23 +1,42 @@ { "$schema": "https://turbo.build/schema.json", - "globalDependencies": ["**/.env.*local"], + "globalDependencies": [ + ".env", + ".env.*", + ".env.*local", + "tsconfig.json", + "tsconfig.*.json" + ], "tasks": { "build": { "dependsOn": ["^build"], - "outputs": ["dist/**", ".next/**", "!.next/cache/**"] + "env": [ + "NEXT_PUBLIC_API_URL", + "NEXT_PUBLIC_*", + "NODE_ENV" + ], + "outputs": [ + ".next/**", + "!.next/cache/**", + "dist/**", + "build/**" + ] }, "dev": { "cache": false, "persistent": true }, "lint": { - "dependsOn": ["^build"] + "dependsOn": ["^build"], + "outputs": [] }, "typecheck": { - "dependsOn": ["^build"] + "dependsOn": ["^build"], + "outputs": [] }, "test": { - "dependsOn": ["build"] + "dependsOn": ["build"], + "outputs": ["coverage/**"] }, "clean": { "cache": false