From a410124e1a145e64d710690543e781a6e2a52f19 Mon Sep 17 00:00:00 2001 From: Pierre Demailly Date: Tue, 1 Jul 2025 21:50:28 +0200 Subject: [PATCH] chore: add ws commands --- .github/workflows/cache.yml | 4 ++-- .github/workflows/server.yml | 4 ++-- package.json | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index b04ba417..1d6da0a3 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -34,6 +34,6 @@ jobs: - name: Install dependencies run: npm install - name: Build - run: npm run build --ws --if-present + run: npm run build:all - name: Run tests - run: npm run test + run: npm run test -w workspaces/cache diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 8647868f..e8d363f7 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -34,6 +34,6 @@ jobs: - name: Install dependencies run: npm install - name: Build - run: npm run build --ws --if-present + run: npm run build:all - name: Run tests - run: npm run test + run: npm run test -w workspaces/server diff --git a/package.json b/package.json index 22f2f68d..8f6b1d94 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,10 @@ "lint-fix": "npm run lint -- --fix", "prepublishOnly": "rimraf ./dist && npm run build && pkg-ok", "build": "node ./esbuild.config.js", - "test": "npm run test-only && npm run lint && npm run lint:css", - "test-only": "glob -c \"node --no-warnings --test-concurrency 1 --test\" \"test/**/*.test.js\"", + "build:all": "npm run build --ws --if-present", + "test": "npm run test:cli && npm run lint && npm run lint:css", + "test:cli": "glob -c \"node --no-warnings --test-concurrency 1 --test\" \"test/**/*.test.js\"", + "test:all": "npm run test --ws --if-present", "coverage": "c8 --reporter=lcov npm run test" }, "files": [