From efec8b5fbaa042178bdc449927c07925843baa33 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 13 Dec 2023 09:55:58 +0100 Subject: [PATCH] Enabled concurrent execution of tsc and Vite build refs https://github.com/TryGhost/DevOps/issues/122 - this runs the Vite build and Typescript type checking concurrently, which will speed up the total time to build --- apps/admin-x-demo/package.json | 2 +- apps/admin-x-design-system/package.json | 2 +- apps/admin-x-framework/package.json | 2 +- apps/admin-x-settings/package.json | 2 +- apps/signup-form/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/admin-x-demo/package.json b/apps/admin-x-demo/package.json index 47f0eaa3ab..f0ce3a60d2 100644 --- a/apps/admin-x-demo/package.json +++ b/apps/admin-x-demo/package.json @@ -21,7 +21,7 @@ "scripts": { "dev": "vite build --watch", "dev:start": "vite", - "build": "tsc && vite build", + "build": "concurrently \"tsc\" \"vite build\"", "lint": "yarn run lint:code && yarn run lint:test", "lint:code": "eslint --ext .js,.ts,.cjs,.tsx --cache src", "lint:test": "eslint -c test/.eslintrc.cjs --ext .js,.ts,.cjs,.tsx --cache test", diff --git a/apps/admin-x-design-system/package.json b/apps/admin-x-design-system/package.json index b4c817c506..ec05b7b6c8 100644 --- a/apps/admin-x-design-system/package.json +++ b/apps/admin-x-design-system/package.json @@ -9,7 +9,7 @@ "types": "types/index.d.ts", "sideEffects": false, "scripts": { - "build": "vite build && tsc -p tsconfig.declaration.json", + "build": "concurrently \"vite build\" \"tsc -p tsconfig.declaration.json\"", "prepare": "yarn build", "test": "yarn test:types", "test:types": "tsc --noEmit", diff --git a/apps/admin-x-framework/package.json b/apps/admin-x-framework/package.json index 0568864723..50550f84d8 100644 --- a/apps/admin-x-framework/package.json +++ b/apps/admin-x-framework/package.json @@ -54,7 +54,7 @@ }, "sideEffects": false, "scripts": { - "build": "vite build && tsc -p tsconfig.declaration.json", + "build": "concurrently \"vite build\" \"tsc -p tsconfig.declaration.json\"", "prepare": "yarn build", "test": "yarn test:types && yarn test:unit", "test:types": "tsc --noEmit", diff --git a/apps/admin-x-settings/package.json b/apps/admin-x-settings/package.json index 883968ded7..5ef8b5e7fc 100644 --- a/apps/admin-x-settings/package.json +++ b/apps/admin-x-settings/package.json @@ -27,7 +27,7 @@ "scripts": { "dev": "vite build --watch", "dev:start": "vite", - "build": "tsc && vite build", + "build": "concurrently \"tsc\" \"vite build\"", "lint": "yarn run lint:js", "lint:js": "eslint --ext .js,.ts,.cjs,.tsx --cache src test", "test:unit": "yarn nx build && vitest run", diff --git a/apps/signup-form/package.json b/apps/signup-form/package.json index fd90126f1c..4e63c6ce1c 100644 --- a/apps/signup-form/package.json +++ b/apps/signup-form/package.json @@ -20,7 +20,7 @@ "dev": "concurrently \"vite --port 6173\" \"vite preview -l silent\" \"vite build --watch\"", "preview": "concurrently \"vite preview -l silent\" \"vite build --watch\"", "dev:test": "vite build && vite preview --port 6175", - "build": "tsc && vite build", + "build": "concurrently \"tsc\" \"vite build\"", "lint": "yarn run lint:js", "lint:js": "eslint --ext .js,.ts,.cjs,.tsx --cache src test", "test:unit": "yarn build",