From 9aed97755ceb27e22d72927cf9e61e2aac1026c3 Mon Sep 17 00:00:00 2001 From: Sokratis Vidros Date: Mon, 30 Sep 2024 12:14:08 +0300 Subject: [PATCH] fix(root): Build only public packages during preview deployments (#6590) --- package.json | 2 +- packages/cli/package.json | 3 +++ packages/client/package.json | 3 +++ packages/framework/package.json | 3 +++ packages/headless/package.json | 3 +++ packages/js/package.json | 3 +++ packages/nest/package.json | 3 +++ packages/node/package.json | 3 +++ packages/notification-center-angular/package.json | 3 +++ packages/notification-center-vue/package.json | 3 +++ packages/notification-center/package.json | 3 +++ packages/providers/package.json | 3 +++ packages/react/package.json | 3 +++ packages/shared/package.json | 3 +++ packages/stateless/package.json | 3 +++ 15 files changed, 43 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index feec7495eed..a54a24ea6fe 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "release:preminor": "nx release version preminor --no-push", "release:prerelease": "nx release version prerelease --no-push", "release:submodules": "ts-node scripts/release-with-submodules.ts", - "preview:pkg:build": "nx affected -t build --base=origin/next --head=HEAD --exclude=nextjs", + "preview:pkg:build": "nx affected -t build --base=origin/next --head=HEAD --exclude='*,!tag:package:public'", "preview:pkg:publish": "node scripts/publish-preview-packages.mjs", "start:integration:api": "cd apps/api && pnpm run test", "start:e2e:api": "cd apps/api && pnpm run test:e2e", diff --git a/packages/cli/package.json b/packages/cli/package.json index fdf209fc9ee..045ed5ef916 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -90,5 +90,8 @@ "cross-spawn": "7.0.3", "fast-glob": "3.3.1", "async-sema": "3.0.1" + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/client/package.json b/packages/client/package.json index 167259302d9..f641a463962 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -59,5 +59,8 @@ }, "prettier": { "singleQuote": true + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/framework/package.json b/packages/framework/package.json index b1272179a10..20fee1cc711 100644 --- a/packages/framework/package.json +++ b/packages/framework/package.json @@ -163,5 +163,8 @@ "liquidjs": "^10.13.1", "ora": "^5.4.1", "sanitize-html": "^2.13.0" + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/headless/package.json b/packages/headless/package.json index 73006e11304..f1826ba8620 100644 --- a/packages/headless/package.json +++ b/packages/headless/package.json @@ -46,5 +46,8 @@ }, "prettier": { "singleQuote": true + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/js/package.json b/packages/js/package.json index f1a32a9e7bd..34f852eeb2e 100644 --- a/packages/js/package.json +++ b/packages/js/package.json @@ -124,5 +124,8 @@ "solid-js": "^1.8.11", "solid-motionone": "^1.0.1", "tailwind-merge": "^2.4.0" + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/nest/package.json b/packages/nest/package.json index a4487e72fcc..03c0f64b799 100644 --- a/packages/nest/package.json +++ b/packages/nest/package.json @@ -84,5 +84,8 @@ "exclude": [ "**/*.spec.js" ] + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/node/package.json b/packages/node/package.json index ad2f220d053..30ee1ab4d81 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -78,5 +78,8 @@ ], "prettier": { "singleQuote": true + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/notification-center-angular/package.json b/packages/notification-center-angular/package.json index 1e93f711ff2..616e293fbd4 100644 --- a/packages/notification-center-angular/package.json +++ b/packages/notification-center-angular/package.json @@ -37,5 +37,8 @@ "karma-jasmine-html-reporter": "~2.1.0", "ng-packagr": "^16.2.0", "typescript": "5.6.2" + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/notification-center-vue/package.json b/packages/notification-center-vue/package.json index 000cb4b4973..97ce8a5f1d8 100644 --- a/packages/notification-center-vue/package.json +++ b/packages/notification-center-vue/package.json @@ -50,5 +50,8 @@ "node_modules", "dist" ] + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/notification-center/package.json b/packages/notification-center/package.json index e8d1aba45a1..3e04409b5c7 100644 --- a/packages/notification-center/package.json +++ b/packages/notification-center/package.json @@ -92,5 +92,8 @@ "socket.io-client": "4.7.2", "tslib": "^2.3.1", "webfontloader": "^1.6.28" + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/providers/package.json b/packages/providers/package.json index 1a3a4ba74df..31976822f49 100644 --- a/packages/providers/package.json +++ b/packages/providers/package.json @@ -112,5 +112,8 @@ "exclude": [ "**/*.spec.js" ] + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/react/package.json b/packages/react/package.json index de1fae7454a..63a405e5ae4 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -95,5 +95,8 @@ }, "dependencies": { "@novu/js": "workspace:*" + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/shared/package.json b/packages/shared/package.json index cd9304a1831..73b43bfbdbf 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -49,5 +49,8 @@ "rimraf": "^3.0.2", "typescript": "5.6.2", "vitest": "^2.0.5" + }, + "nx": { + "tags": ["package:public"] } } diff --git a/packages/stateless/package.json b/packages/stateless/package.json index 324c0311d2e..625928abb8e 100644 --- a/packages/stateless/package.json +++ b/packages/stateless/package.json @@ -72,5 +72,8 @@ ], "prettier": { "singleQuote": true + }, + "nx": { + "tags": ["package:public"] } }