From c0e25813b1b0db23789c230df0197f7ad8b3233a Mon Sep 17 00:00:00 2001 From: coni <110510124+Onze981@users.noreply.github.com> Date: Sun, 23 Nov 2025 22:33:06 +0300 Subject: [PATCH] Update turbo.json --- turbo.json | 47 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/turbo.json b/turbo.json index 6401e364..72869aa7 100644 --- a/turbo.json +++ b/turbo.json @@ -1,32 +1,55 @@ { "$schema": "https://turbo.build/schema.json", - "globalEnv": ["npm_package_version", "npm_package_name"], + "globalEnv": [ + "npm_package_version", + "npm_package_name", + "NODE_ENV", + "CI" + ], "pipeline": { "build": { "dependsOn": ["prebuild", "ts-declarations", "^build"], - "outputs": ["dist/**"] + "outputs": ["dist/**", "lib/**"] + }, + "clean": { + "cache": false, + "outputs": [] }, - "clean": {}, "dev": { "cache": false, "persistent": true }, - "format": {}, - "lint": { - "dependsOn": ["^lint"] + "format": { + "outputs": [] }, - "pack": { - "dependsOn": ["lint", "build", "test"] + "lint": { + "dependsOn": ["^lint"], + "outputs": [] }, - "prebuild": {}, "test": { - "dependsOn": ["build"] + "dependsOn": ["build"], + "outputs": ["coverage/**"] + }, + "prebuild": { + "outputs": [] }, "ts-declarations": { - "dependsOn": ["prebuild", "^ts-declarations", "^build"] + # TS declarations only need preceding steps or dependencies' declarations, + # not necessarily the full 'build' of the dependency itself. + "dependsOn": ["prebuild", "^ts-declarations"], + # Assuming declarations output to 'dist' or a specific type folder + "outputs": ["dist/types/**", "*.d.ts"] + }, + "pack": { + # Only depends on 'build' for the compiled artifacts. + # Removed 'lint' and 'test' for faster packing cycles. + "dependsOn": ["build"], + "outputs": ["*.tgz"] }, + # Specialized task (placed last for readability) "@starkgate/web#lint": { - "env": ["NETLIFY"] + "env": ["NETLIFY"], + "outputs": [] } } }