From e488e90128a450a1ea10e233ffee63f6082343c3 Mon Sep 17 00:00:00 2001 From: Matt Fedderly Date: Wed, 7 Aug 2024 12:33:15 -0400 Subject: [PATCH 1/2] Update nx config for tests Tests only require that the dependencies have been built, not the package itself --- nx.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nx.json b/nx.json index 87f3cd2f1b..81603075b6 100644 --- a/nx.json +++ b/nx.json @@ -5,17 +5,17 @@ "{workspaceRoot}/tsconfig.shared.json", "{projectRoot}/package.json", "{projectRoot}/tsconfig.json" - ] + ], + "sources": ["{projectRoot}/index.{js,ts}", "{projectRoot}/lib/**"] }, "targetDefaults": { "build": { "dependsOn": ["^build"], "inputs": [ "default", + "sources", "{workspaceRoot}/tsup.config.ts", - "{projectRoot}/index.{js,ts}", "{projectRoot}/index.d.ts", - "{projectRoot}/lib/**", "{projectRoot}/rollup.config.cjs" ], "outputs": ["{projectRoot}/dist"], @@ -24,11 +24,12 @@ "test": { "inputs": [ "default", + "sources", "{projectRoot}/test.ts", "{projectRoot}/test/**", "{projectRoot}/types.ts" ], - "dependsOn": ["build"], + "dependsOn": ["^build"], "cache": true }, "last-checks": { From bbcff193579d60133fd21c3824faaa462f4fc152 Mon Sep 17 00:00:00 2001 From: Matt Fedderly Date: Thu, 8 Aug 2024 13:05:22 -0400 Subject: [PATCH 2/2] Revert test dependsOn so as to avoid a merge conflict --- nx.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx.json b/nx.json index 81603075b6..e6ced2dd5d 100644 --- a/nx.json +++ b/nx.json @@ -29,7 +29,7 @@ "{projectRoot}/test/**", "{projectRoot}/types.ts" ], - "dependsOn": ["^build"], + "dependsOn": ["build"], "cache": true }, "last-checks": {