From e17855b4d41d4e8c91e7f05f49e86bf5d3941a27 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Sat, 21 Jan 2023 01:06:41 +0100 Subject: [PATCH] Fine-tune `turbo.json` config to improve cache hits (#10377) * play with turbo configuration * tmp: random change, let's test caches * remove unnecessary inputs Inputs are implicit via the `"dependsOn": ["//#build"],` * use `inputs` instead of `outputs` for `//#style` * Revert "tmp: random change, let's test caches" This reverts commit 77e9be6dc41bc432bee7589f77d8b9fc02369e2a. * remove empty `outputs` configs --- turbo.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/turbo.json b/turbo.json index 847ad38e7..ef1c9043d 100644 --- a/turbo.json +++ b/turbo.json @@ -2,18 +2,20 @@ "$schema": "https://turbo.build/schema.json", "pipeline": { "//#build": { - "outputs": ["lib/**", "peers/**", "types/generated/**"] + "outputs": ["lib/**", "peers/**", "types/generated/**"], + "inputs": ["src/**", "oxide/**", "nesting/**", "oxide-node-api-shim/**", "types/**"] }, "test": { "env": ["OXIDE"], - "outputs": [] + "dependsOn": ["//#build"] }, "//#test": { "env": ["OXIDE"], - "outputs": [] + "dependsOn": ["//#build"], + "inputs": ["tests/**"] }, "//#style": { - "outputs": [] + "inputs": ["**/*.js", "**/*.ts"] } } }