From d33a71fba1fc3c320aeeda3151e16766d87ebde5 Mon Sep 17 00:00:00 2001 From: jordanpowell88 Date: Thu, 18 May 2023 17:08:44 -0400 Subject: [PATCH] chore: add target defaults and namedInputs --- nx.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/nx.json b/nx.json index d9f1ee29197a..577c9d8675c5 100644 --- a/nx.json +++ b/nx.json @@ -9,5 +9,32 @@ "accessToken": "ZmNlNjA0YzAtNTM1NS00MDIwLWFlMWItNWYxYzNiMjQ4N2VkfHJlYWQtb25seQ==" } } + }, + "targetDefaults": { + "lint": { + "inputs": [ + "default", + "{workspaceRoot}/.eslintrc.js" + ] + } + }, + "namedInputs": { + "sharedGlobals": [ + "{workspaceRoot}/package.json" + ], + "default": [ + "{projectRoot}/**/*", + "sharedGlobals" + ], + "production": [ + "default", + "!{projectRoot}/**/*.spec.ts", + "!{projectRoot}/**/*.md", + "!{projectRoot}/tsconfig.spec.json", + "!{projectRoot}/.eslintrc.json", + "!{projectRoot}/.mocharc.{js,json}", + "!{projectRoot/cypress.config.{ts,js}", + "!{projectRoot/**/*.cy.ts" + ] } }