From 2c0255a72e6fd96a5a80eace70aa07c79bb38a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Fri, 4 Apr 2025 13:36:18 +0200 Subject: [PATCH] Nx: fixes caching issues (#103443) --- .prettierignore | 3 +++ nx.json | 14 +++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.prettierignore b/.prettierignore index 23d9231bc49..650825ae9c9 100644 --- a/.prettierignore +++ b/.prettierignore @@ -36,3 +36,6 @@ public/mockServiceWorker.js # Crowdin files public/locales/**/*.json + +/.nx/cache +/.nx/workspace-data \ No newline at end of file diff --git a/nx.json b/nx.json index 5e92cfe6851..e60803eee58 100644 --- a/nx.json +++ b/nx.json @@ -1,15 +1,11 @@ { - "tasksRunnerOptions": { - "default": { - "runner": "nx/tasks-runners/default", - "options": { - "cacheableOperations": ["build", "generate"] - } - } - }, "targetDefaults": { "build": { - "outputs": ["{projectRoot}/dist"] + "outputs": ["{projectRoot}/dist"], + "cache": true + }, + "generate": { + "cache": true } }, "defaultBase": "main"