chore(repo): mark vite as cacheable (#31017)

This PR makes sure that `vite:build-base` is cacheable. It's a
long-standing issue because vite is the only package using SWC to build,
thus the `targetDefaults` using TSC is not being applied. We don't
actually need to specify the executor, as `build-base` using
`@nx/next:build` (nx-dev) and `@nx/js:swc` (vite) are both cacheable.
This commit is contained in:
Jack Hsu 2025-05-02 16:48:34 -04:00 committed by GitHub
parent 8b3e9f7d5b
commit e30b5fa7d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,7 +97,6 @@
"build-base": { "build-base": {
"dependsOn": ["^build-base", "build-native"], "dependsOn": ["^build-base", "build-native"],
"inputs": ["production", "^production"], "inputs": ["production", "^production"],
"executor": "@nx/js:tsc",
"options": { "options": {
"outputPath": "build/{projectRoot}", "outputPath": "build/{projectRoot}",
"tsConfig": "{projectRoot}/tsconfig.lib.json", "tsConfig": "{projectRoot}/tsconfig.lib.json",