From d58fbfec6c545a4a6d4074116baca413acb7e2d6 Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Wed, 24 Jul 2024 14:03:55 -0400 Subject: [PATCH] chore(repo): cache documentation script --- package.json | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 629e14dd301a93..b641c02fbad243 100644 --- a/package.json +++ b/package.json @@ -376,7 +376,25 @@ "check-lock-files", "check-codeowners", "documentation" - ] + ], + "targets": { + "documentation": { + "cache": true, + "inputs": [ + "{workspaceRoot}/packages/**", + "{workspaceRoot}/docs/**", + "!{workspaceRoot}/docs/generated", + "!{workspaceRoot}/packages/**/*.spec.ts", + "!{workspaceRoot}/packages/**/project.json", + "!{workspaceRoot}/packages/**/tsconfig.json", + "!{workspaceRoot}/packages/**/tsconfig.lib.json", + "!{workspaceRoot}/packages/**/tsconfig.spec.json", + "!{workspaceRoot}/packages/**/jest.config.{ts,js}", + "!{workspaceRoot}/packages/**/.eslintrc.json" + ] + }, + "outputs": ["{workspaceRoot}/docs/generated"] + } }, "packageManager": "pnpm@8.15.7" }