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:
parent
20b0890a02
commit
efec8b5fba
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user