Skip to content

Commit 1dc8417

Browse files
committed
chore: setup corepack
1 parent 8f0d873 commit 1dc8417

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/health-check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616

1717
- uses: pnpm/action-setup@v4
1818
with:
19-
version: 10
2019
run_install: false
2120

2221
# https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020

2121
- uses: pnpm/action-setup@v4
2222
with:
23-
version: 10
2423
run_install: false
2524

2625
- name: Use Node.js 22.x
@@ -46,7 +45,6 @@ jobs:
4645

4746
- uses: pnpm/action-setup@v4
4847
with:
49-
version: 10
5048
run_install: false
5149

5250
- name: Use Node.js 22.x
@@ -74,7 +72,6 @@ jobs:
7472

7573
- uses: pnpm/action-setup@v4
7674
with:
77-
version: 10
7875
run_install: false
7976

8077
- name: Use Node.js 22.x
@@ -112,7 +109,6 @@ jobs:
112109

113110
- uses: pnpm/action-setup@v4
114111
with:
115-
version: 10
116112
run_install: false
117113

118114
- name: Use Node.js 22.x

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "vue3-realworld-example-app",
33
"private": true,
44
"license": "MIT",
5+
"engines": {
6+
"node": ">= 20"
7+
},
8+
"packageManager": "[email protected]",
59
"type": "module",
610
"scripts": {
711
"prepare": "simple-git-hooks",
@@ -10,11 +14,11 @@
1014
"serve": "vite preview --port 4173",
1115
"type-check": "vue-tsc --noEmit",
1216
"lint": "eslint --fix .",
13-
"test": "npm run test:unit && npm run test:playwright",
14-
"test:cypress": "npm run build && concurrently -rk -s first \"npm run serve\" \"cypress run --e2e\"",
17+
"test": "pnpm test:unit && pnpm test:playwright",
18+
"test:cypress": "pnpm build && concurrently -rk -s first \"pnpm serve\" \"cypress run --e2e\"",
1519
"test:cypress:ui": "cypress open --e2e",
1620
"test:cyprsss:prod": "cypress run --e2e -c baseUrl=https://vue3-realworld-example-app-mutoe.vercel.app",
17-
"test:playwright": "npm run build && cross-env CI=true playwright test",
21+
"test:playwright": "pnpm build && cross-env CI=true playwright test",
1822
"test:playwright:prod": "cross-env E2E_BASE_URL='https://vue3-realworld-example-app-mutoe.vercel.app' playwright test",
1923
"test:playwright:ui": "playwright test --ui",
2024
"test:playwright:ui:debug": "playwright test --ui --headed --debug",
@@ -60,7 +64,7 @@
6064
},
6165
"simple-git-hooks": {
6266
"pre-commit": "npm exec lint-staged",
63-
"pre-push": "npm run type-check && npm run build"
67+
"pre-push": "pnpm type-check && pnpm build"
6468
},
6569
"lint-staged": {
6670
"*": "eslint --fix"

0 commit comments

Comments
 (0)