diff --git a/nx.json b/nx.json index 3b2b7778c325..2a801035b45c 100644 --- a/nx.json +++ b/nx.json @@ -6,12 +6,24 @@ "cacheableOperations": [ "build:bundle", "build:transpile", - "build:tarball", "build:types" ] } } }, + "namedInputs": { + "sharedGlobals": [ + "{workspaceRoot}/*.js", + "{workspaceRoot}/*.json", + "{workspaceRoot}/yarn.lock" + ], + "default": [ + "{projectRoot}/**/*", + "sharedGlobals", + "!{projectRoot}/test/**/*", + "!{projectRoot}/**/*.md" + ] + }, "targetDefaults": { "build:bundle": { "dependsOn": [ @@ -58,7 +70,12 @@ "targets": { "@sentry/serverless": { "build:bundle": { - "dependsOn": [], + "dependsOn": [ + "^build:transpile", + "build:transpile", + "^build:types", + "build:types" + ], "outputs": [ "{projectRoot}/build/aws" ]