From 8ae4beb483119b231046a36c2592198b003bc0c1 Mon Sep 17 00:00:00 2001 From: Char2s Date: Sat, 6 Apr 2024 17:25:41 -0400 Subject: [PATCH] build(nx): move `dependsOn` of `nx-release-publish` to project.json [Bug] Target Default dependsOn Not Work for nx-release-publish https://github.com/nrwl/nx/issues/22720 --- nx.json | 1 - packages/cdk/project.json | 3 +++ packages/command-flow/project.json | 3 +++ packages/config-files/project.json | 3 +++ packages/core/project.json | 3 +++ packages/endpoints/project.json | 3 +++ packages/fire/project.json | 3 +++ packages/forms/project.json | 3 +++ packages/router/project.json | 3 +++ packages/theming-material/project.json | 3 +++ packages/theming/project.json | 3 +++ 11 files changed, 30 insertions(+), 1 deletion(-) diff --git a/nx.json b/nx.json index 5d0b416..b078a79 100644 --- a/nx.json +++ b/nx.json @@ -44,7 +44,6 @@ "inputs": ["default", "^production"] }, "nx-release-publish": { - "dependsOn": ["build"], "options": { "packageRoot": "{workspaceRoot}/dist/{projectName}" } diff --git a/packages/cdk/project.json b/packages/cdk/project.json index dc4b68a..c764b62 100644 --- a/packages/cdk/project.json +++ b/packages/cdk/project.json @@ -26,6 +26,9 @@ "tsConfig": "packages/cdk/tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } + }, + "nx-release-publish": { + "dependsOn": ["build", "^nx-release-publish"] } } } diff --git a/packages/command-flow/project.json b/packages/command-flow/project.json index 5e69aa0..1b28ab3 100644 --- a/packages/command-flow/project.json +++ b/packages/command-flow/project.json @@ -26,6 +26,9 @@ "tsConfig": "packages/command-flow/tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } + }, + "nx-release-publish": { + "dependsOn": ["build", "^nx-release-publish"] } } } diff --git a/packages/config-files/project.json b/packages/config-files/project.json index 618eefe..630f5e1 100644 --- a/packages/config-files/project.json +++ b/packages/config-files/project.json @@ -26,6 +26,9 @@ "tsConfig": "packages/config-files/tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } + }, + "nx-release-publish": { + "dependsOn": ["build", "^nx-release-publish"] } } } diff --git a/packages/core/project.json b/packages/core/project.json index 6a25a9e..53aac30 100644 --- a/packages/core/project.json +++ b/packages/core/project.json @@ -26,6 +26,9 @@ "tsConfig": "packages/core/tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } + }, + "nx-release-publish": { + "dependsOn": ["build", "^nx-release-publish"] } } } diff --git a/packages/endpoints/project.json b/packages/endpoints/project.json index 89c8dde..dc182a7 100644 --- a/packages/endpoints/project.json +++ b/packages/endpoints/project.json @@ -26,6 +26,9 @@ "tsConfig": "packages/endpoints/tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } + }, + "nx-release-publish": { + "dependsOn": ["build", "^nx-release-publish"] } } } diff --git a/packages/fire/project.json b/packages/fire/project.json index 8cbc4ab..ca81b8b 100644 --- a/packages/fire/project.json +++ b/packages/fire/project.json @@ -26,6 +26,9 @@ "tsConfig": "packages/fire/tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } + }, + "nx-release-publish": { + "dependsOn": ["build", "^nx-release-publish"] } } } diff --git a/packages/forms/project.json b/packages/forms/project.json index c0e611d..972eae4 100644 --- a/packages/forms/project.json +++ b/packages/forms/project.json @@ -26,6 +26,9 @@ "tsConfig": "packages/forms/tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } + }, + "nx-release-publish": { + "dependsOn": ["build", "^nx-release-publish"] } } } diff --git a/packages/router/project.json b/packages/router/project.json index 8caef47..273416b 100644 --- a/packages/router/project.json +++ b/packages/router/project.json @@ -26,6 +26,9 @@ "tsConfig": "packages/router/tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } + }, + "nx-release-publish": { + "dependsOn": ["build", "^nx-release-publish"] } } } diff --git a/packages/theming-material/project.json b/packages/theming-material/project.json index 4f2eda3..d9723a6 100644 --- a/packages/theming-material/project.json +++ b/packages/theming-material/project.json @@ -26,6 +26,9 @@ "tsConfig": "packages/theming-material/tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } + }, + "nx-release-publish": { + "dependsOn": ["build", "^nx-release-publish"] } } } diff --git a/packages/theming/project.json b/packages/theming/project.json index 4fddd51..22cb235 100644 --- a/packages/theming/project.json +++ b/packages/theming/project.json @@ -26,6 +26,9 @@ "tsConfig": "packages/theming/tsconfig.spec.json", "polyfills": ["zone.js", "zone.js/testing"] } + }, + "nx-release-publish": { + "dependsOn": ["build", "^nx-release-publish"] } } }