Skip to content

Commit a410124

Browse files
chore: add ws commands
1 parent 5f179b3 commit a410124

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/cache.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
- name: Install dependencies
3535
run: npm install
3636
- name: Build
37-
run: npm run build --ws --if-present
37+
run: npm run build:all
3838
- name: Run tests
39-
run: npm run test
39+
run: npm run test -w workspaces/cache

.github/workflows/server.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
- name: Install dependencies
3535
run: npm install
3636
- name: Build
37-
run: npm run build --ws --if-present
37+
run: npm run build:all
3838
- name: Run tests
39-
run: npm run test
39+
run: npm run test -w workspaces/server

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
"lint-fix": "npm run lint -- --fix",
1818
"prepublishOnly": "rimraf ./dist && npm run build && pkg-ok",
1919
"build": "node ./esbuild.config.js",
20-
"test": "npm run test-only && npm run lint && npm run lint:css",
21-
"test-only": "glob -c \"node --no-warnings --test-concurrency 1 --test\" \"test/**/*.test.js\"",
20+
"build:all": "npm run build --ws --if-present",
21+
"test": "npm run test:cli && npm run lint && npm run lint:css",
22+
"test:cli": "glob -c \"node --no-warnings --test-concurrency 1 --test\" \"test/**/*.test.js\"",
23+
"test:all": "npm run test --ws --if-present",
2224
"coverage": "c8 --reporter=lcov npm run test"
2325
},
2426
"files": [

0 commit comments

Comments
 (0)