From fd00856af85b7fd936f3634e77ec36c80ddfc8e7 Mon Sep 17 00:00:00 2001 From: felipefialho Date: Tue, 10 Dec 2024 14:23:31 -0300 Subject: [PATCH] chore: update nx to new configs --- .prettierignore | 3 +++ nx.json | 43 +++++++++++++++++-------------------------- 2 files changed, 20 insertions(+), 26 deletions(-) diff --git a/.prettierignore b/.prettierignore index 7da90e1..15c9abc 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,5 @@ /node_modules *.md + +/.nx/cache +/.nx/workspace-data \ No newline at end of file diff --git a/nx.json b/nx.json index 2c1c4c3..b70c9fe 100644 --- a/nx.json +++ b/nx.json @@ -1,15 +1,20 @@ { "targetDefaults": { "build": { - "dependsOn": ["^build"] + "dependsOn": ["^build"], + "cache": true }, "test": { - "inputs": ["default", "^default"] + "inputs": ["default", "^default"], + "cache": true }, "@nx/vite:build": { "cache": true, "dependsOn": ["^build"], "inputs": ["default", "^default"] + }, + "lint": { + "cache": true } }, "workspaceLayout": { @@ -17,29 +22,14 @@ }, "extends": "@nrwl/workspace/presets/core.json", "$schema": "./node_modules/nx/schemas/nx-schema.json", - "npmScope": "@juntossomosmais", - "affected": { - "defaultBase": "main" - }, - "cli": { - "defaultCollection": "@nrwl/workspace" - }, - "implicitDependencies": { - "package.json": { - "dependencies": "*", - "devDependencies": "*" - }, - ".eslintrc.js": "*", - "tsconfig.base.json": "*", - "nx.json": "*" - }, - "tasksRunnerOptions": { - "default": { - "runner": "nx/tasks-runners/default", - "options": { - "cacheableOperations": ["build", "lint", "test"] - } - } + "namedInputs": { + "sharedGlobals": [ + "{workspaceRoot}/package.json", + "{workspaceRoot}/.eslintrc.js", + "{workspaceRoot}/tsconfig.base.json", + "{workspaceRoot}/nx.json" + ], + "default": ["sharedGlobals"] }, "release": { "version": { @@ -63,5 +53,6 @@ "targetName": "jest:test" } } - ] + ], + "defaultBase": "main" }