Files
Ivan Vasilov 14e9f4ccef chore: Add max age to the turbo cache (#44847)
This pull request introduces improvements to the project's build and
cache management processes. The main changes focus on enhancing the
cleaning of build artifacts and optimizing Turbo's caching behavior.

**Build and cache improvements:**

* Updated the `clean` script in `package.json` to also remove the
`.turbo/cache` directory, ensuring a more thorough cleanup of build
artifacts.
* Added a `cacheMaxAge` setting of 14 days to `turbo.jsonc`, which
controls how long Turbo's cache is retained, helping to balance cache
efficiency and disk usage.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Optimized build system caching configuration with extended cache
validity period (14 days) to improve build performance through longer
retention of build artifacts and reduced unnecessary recompilation.
* Enhanced cleanup procedures for build artifacts, cached files, and
temporary data to maintain a consistent and clean build environment.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-14 11:22:53 +02:00

29 lines
522 B
JSON

{
"$schema": "./node_modules/turbo/schema.json",
"ui": "stream",
"cacheMaxAge": "14d",
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**/*", "!.next/dev/**/*"],
},
"lint": {
"outputs": [],
},
"clean": {
"outputs": [],
"cache": false,
},
"dev": {
"cache": false,
},
"test": {
"cache": false,
},
"typecheck": {
"dependsOn": ["^typecheck"],
"outputs": [],
},
},
}