From 43d7550a4d3a807b7ad012736b5d6363852bfdc7 Mon Sep 17 00:00:00 2001 From: Ethan Sargent Date: Thu, 13 Jul 2023 22:45:26 +1000 Subject: [PATCH] build(lerna): configure caching (#1354) Caches compile, build, and test commands. Build and test iteration time should be significantly improved. --- nx.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 nx.json diff --git a/nx.json b/nx.json new file mode 100644 index 000000000..92908bb5a --- /dev/null +++ b/nx.json @@ -0,0 +1,29 @@ +{ + "tasksRunnerOptions": { + "default": { + "runner": "nx/tasks-runners/default", + "options": { + "cacheableOperations": [ + "build", + "compile", + "test" + ] + } + } + }, + "targetDefaults": { + "build": { + "dependsOn": [ + "^build" + ], + "outputs": [ + "{projectRoot}/lib" + ] + }, + "compile": { + "outputs": [ + "{projectRoot}/lib" + ] + } + } +}