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": {