From ca5a2284d60134096ffcccbd4fd4a9655c8911f4 Mon Sep 17 00:00:00 2001 From: kokoaj <43525282+kokiebisu@users.noreply.github.com> Date: Sat, 26 Feb 2022 13:22:54 -0800 Subject: [PATCH] document fixes for the cache section (#782) --- docs/pages/docs/features/caching.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/pages/docs/features/caching.mdx b/docs/pages/docs/features/caching.mdx index 5e0de6883c5b0..58c834c89571b 100644 --- a/docs/pages/docs/features/caching.mdx +++ b/docs/pages/docs/features/caching.mdx @@ -90,11 +90,11 @@ Luckily, you can control `turbo`'s cache fingerprinting (a.k.a. hashing) behavio "$schema": "https://turborepo.org/schema.json", "pipeline": { "build": { - "dependsOn": { - "^build" - // env vars will impact hashes of all "build" tasks - "$SOME_ENV_VAR" - }, + "dependsOn": [ + "^build", + // env vars will impact hashes of all "build" tasks + "$SOME_ENV_VAR", + ], "outputs": ["dist/**"] }, "web#build": { // override settings for the "build" task for the "web" app @@ -120,9 +120,9 @@ Luckily, you can control `turbo`'s cache fingerprinting (a.k.a. hashing) behavio }, "baseBranch": "origin/main", "globalDependencies": [ - "$GITHUB_TOKEN"// env var that will impact the hashes of all tasks, - "tsconfig.json" // file contents will impact the hashes of all tasks, - ".env.*" // glob file contents will impact the hashes of all tasks, + "$GITHUB_TOKEN",// env var that will impact the hashes of all tasks, + "tsconfig.json", // file contents will impact the hashes of all tasks, + ".env.*", // glob file contents will impact the hashes of all tasks, ] } ```