chore(build): build shared before typecheck, test, and dev

This commit is contained in:
lakshit verma 2026-08-17 02:06:49 +05:30
parent 444da042b3
commit 6d4934d1b2
No known key found for this signature in database
2 changed files with 7 additions and 7 deletions

View file

@ -57,9 +57,7 @@ jobs:
node-version: 20
cache: npm
- run: npm ci
- run: npm run test -w @workorders/shared
- run: npm run test:coverage -w backend
- run: npm run test:coverage -w frontend
- run: npm run test:coverage
build:
name: Build

View file

@ -20,11 +20,13 @@
},
"scripts": {
"build": "npm run build -w @workorders/shared && npm run build -w backend && npm run build -w frontend",
"dev": "npm run dev -w backend & npm run dev -w frontend & wait",
"dev": "npm run build -w @workorders/shared && npm run dev -w backend & npm run dev -w frontend & wait",
"lint": "npm run lint -w @workorders/shared && npm run lint -w backend && npm run lint -w frontend",
"typecheck": "npm run typecheck -w @workorders/shared && npm run typecheck -w backend && npm run typecheck -w frontend",
"test": "npm run test -w @workorders/shared && npm run test -w backend && npm run test -w frontend",
"seed": "npm run seed -w backend"
"typecheck": "npm run build -w @workorders/shared && npm run typecheck -w @workorders/shared && npm run typecheck -w backend && npm run typecheck -w frontend",
"test": "npm run build -w @workorders/shared && npm run test -w @workorders/shared && npm run test -w backend && npm run test -w frontend",
"test:coverage": "npm run build -w @workorders/shared && npm run test:coverage -w backend && npm run test:coverage -w frontend",
"seed": "npm run seed -w backend",
"seed:demo": "npm run seed:demo -w backend"
},
"allowScripts": {
"mongodb-memory-server": true,