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" }