From 606befd6abf9fc76483b66bae3f99ecec852ab88 Mon Sep 17 00:00:00 2001 From: Nir Gur Arie Date: Tue, 23 Jul 2024 22:07:17 +0300 Subject: [PATCH] skip module cache --- nx.json | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/nx.json b/nx.json index 6b70aa3f9..5e6c0f569 100644 --- a/nx.json +++ b/nx.json @@ -2,14 +2,24 @@ "$schema": "./node_modules/nx/schemas/nx-schema.json", "npmScope": "descope", "defaultBase": "origin/main", + "affected": { + "defaultBase": "origin/main" + }, "targetDefaults": { "build": { - "dependsOn": ["^build"], - "inputs": ["production", "^production"], + "dependsOn": [ + "^build" + ], + "inputs": [ + "production", + "^production" + ], "cache": true }, "lint": { - "dependsOn": ["^build"], + "dependsOn": [ + "^build" + ], "inputs": [ "default", "{workspaceRoot}/.eslintrc.json", @@ -18,8 +28,14 @@ "cache": true }, "test": { - "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"], - "dependsOn": ["^build"], + "inputs": [ + "default", + "^production", + "{workspaceRoot}/jest.preset.js" + ], + "dependsOn": [ + "^build" + ], "cache": true }, "test:e2e": { @@ -28,12 +44,17 @@ "^production", "{projectRoot}/playwright.config.ts" ], - "dependsOn": ["^build"], + "dependsOn": [ + "^build" + ], "cache": true } }, "namedInputs": { - "default": ["{projectRoot}/**/*", "sharedGlobals"], + "default": [ + "{projectRoot}/**/*", + "sharedGlobals" + ], "production": [ "default", "!{projectRoot}/.eslintrc.json", @@ -43,6 +64,9 @@ ], "sharedGlobals": [] }, - "workspaceLayout": { "appsDir": "packages/**", "libsDir": "packages/**" }, + "workspaceLayout": { + "appsDir": "packages/**", + "libsDir": "packages/**" + }, "nxCloudAccessToken": "OTk2MTNiMTQtODRiMi00OTVkLWE5MGQtNjMyY2ZkY2I0MDhlfHJlYWQtd3JpdGU=" }