chore(monorepo): scripts to build globally

This commit is contained in:
Elian Doran 2025-04-18 17:32:48 +03:00
parent bc42038e01
commit b3946db40a
No known key found for this signature in database
2 changed files with 8 additions and 6 deletions

View File

@ -20,7 +20,7 @@
"type": "module", "type": "module",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"build:webpack": "tsx node_modules/webpack/bin/webpack.js -c webpack.config.ts", "build:webpack": "tsx ../../node_modules/webpack/bin/webpack.js -c webpack.config.ts",
"test": "vitest" "test": "vitest"
}, },
"devDependencies": { "devDependencies": {

View File

@ -13,13 +13,15 @@
"packages/*" "packages/*"
], ],
"scripts": { "scripts": {
"test": "npm --workspace=apps/client --workspace=apps/server test", "build": "npm run client:build && npm run server:build",
"test": "npm --workspace=apps/client --workspace=apps/server run test",
"client:test": "npm --workspace=apps/client test", "client:test": "npm --workspace=apps/client run test",
"client:build": "npm --workspace=apps/client build:webpack", "client:build": "npm --workspace=apps/client run build:webpack",
"server:test": "npm --workspace=apps/server test", "server:test": "npm --workspace=apps/server run test",
"server:coverage": "npm --workspace=apps/server coverage", "server:coverage": "npm --workspace=apps/server run coverage",
"server:build": "npm --workspace=apps/client run build:ts",
"chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts", "chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts",
"chore:update-build-info": "tsx ./scripts/update-build-info.ts" "chore:update-build-info": "tsx ./scripts/update-build-info.ts"