From f00768c7d24141623bca1eb481793db8bebcb034 Mon Sep 17 00:00:00 2001 From: Iku-turso Date: Fri, 2 Jun 2023 11:51:15 +0300 Subject: [PATCH] chore: Make only changes in production files invalidate build caches Currently production files means other files than tests and .md -files. Co-authored-by: Janne Savolainen Signed-off-by: Iku-turso --- nx.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nx.json b/nx.json index 3950ff391f..03e6ce7564 100644 --- a/nx.json +++ b/nx.json @@ -9,10 +9,22 @@ } } }, + "namedInputs": { + "productionFiles": [ + "default", + "!{projectRoot}/**/*.test.ts", + "!{projectRoot}/**/*.test.tsx", + "!{projectRoot}/**/*.md" + ] + }, "targetDefaults": { "build": { "dependsOn": [ "^build" + ], + + "inputs": [ + "productionFiles" ] }, "build:app": {