From 92ee6dded4f7031e2afc416b57722266ef15120d Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Mon, 19 Jun 2023 10:02:41 +1000 Subject: [PATCH 1/2] chore: Use `nx watch` command --- nx.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nx.json b/nx.json index 339b51dcf2a..5ce8784f6aa 100644 --- a/nx.json +++ b/nx.json @@ -14,7 +14,7 @@ "test:build", "build" ], - "parallel": 3, + "parallel": 5, "accessToken": "ZDdkNDA4MGEtYjNmYi00MWI4LWE1N2QtYTdlNmYxMGJlZWM2fHJlYWQ=" } } diff --git a/package.json b/package.json index 4767694c268..d9e2d28d1d8 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "test:types": "nx affected --target=test:types", "build": "nx affected --target=build", "build:all": "nx run-many --exclude=examples/** --target=build", - "watch": "concurrently --kill-others \"pnpm -r build:rollup -w\" \"pnpm -r build:types --watch\"", + "watch": "nx watch --all -- pnpm run build:all", "dev": "pnpm run watch", "prettier": "prettier --plugin-search-dir . \"{packages,examples,scripts}/**/*.{md,js,jsx,cjs,ts,tsx,json,vue,svelte}\"", "prettier:write": "pnpm run prettier --write", From f4b612e2766300bb7ebc494a5b58e8d4a7153004 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Mon, 19 Jun 2023 10:05:28 +1000 Subject: [PATCH 2/2] Run build:all before watching --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d9e2d28d1d8..8e485df1ff7 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "test:types": "nx affected --target=test:types", "build": "nx affected --target=build", "build:all": "nx run-many --exclude=examples/** --target=build", - "watch": "nx watch --all -- pnpm run build:all", + "watch": "pnpm run build:all && nx watch --all -- pnpm run build:all", "dev": "pnpm run watch", "prettier": "prettier --plugin-search-dir . \"{packages,examples,scripts}/**/*.{md,js,jsx,cjs,ts,tsx,json,vue,svelte}\"", "prettier:write": "pnpm run prettier --write",