From a042b8ce4412994acb0fd3a9d0c5bd5ed74a31df 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 | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 629e14dd301a9..4793eefcee34e 100644 --- a/package.json +++ b/package.json @@ -376,7 +376,26 @@ "check-lock-files", "check-codeowners", "documentation" - ] + ], + "targets": { + "documentation": { + "cache": true, + "inputs": [ + "{workspaceRoot}/packages/**", + "{workspaceRoot}/docs/**", + "{workspaceRoot}/scripts/documentation/**", + "!{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" }