From d3cc1d12c2fd61a84160b7f06845a29839898e90 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Mon, 15 Jul 2024 18:02:37 +0100 Subject: [PATCH] Improve turbo --- apps/frontpage/package.json | 2 +- turbo.json | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/frontpage/package.json b/apps/frontpage/package.json index 451db81b..1b333555 100644 --- a/apps/frontpage/package.json +++ b/apps/frontpage/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "npm run fetch-docs && npm run generate-redirects && next build", + "build": "next build", "start": "next start", "lint": "next lint", "typecheck": "tsc --noEmit", diff --git a/turbo.json b/turbo.json index 401f5d88..92d4fc79 100644 --- a/turbo.json +++ b/turbo.json @@ -9,8 +9,17 @@ "typecheck": { "dependsOn": ["^typecheck"] }, + "generate-redirects": { + "dependsOn": [], + "outputs": ["./apps/frontpage/generated-redirects.json"] + }, "fetch-docs": { - "dependsOn": ["^fetch-docs"] + "dependsOn": [], + "outputs": [ + "./apps/frontpage/content/docs/**", + "./apps/frontpage/content/snippets/**", + "./apps/frontpage/public/docs-assets/**" + ] }, "storybook": { "dependsOn": ["^storybook"] @@ -21,7 +30,7 @@ "inputs": ["$TURBO_DEFAULT$", ".env"] }, "build": { - "dependsOn": ["^build"], + "dependsOn": ["fetch-docs", "generate-redirects", "^build"], "outputs": [ "dist/**", ".next/**",