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
This commit is contained in:
Daniel Lockyer 2023-12-13 09:55:58 +01:00 committed by Daniel Lockyer
parent 20b0890a02
commit efec8b5fba
5 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",