|
2 | 2 | "name": "vue3-realworld-example-app", |
3 | 3 | "private": true, |
4 | 4 | "license": "MIT", |
| 5 | + "engines": { |
| 6 | + "node": ">= 20" |
| 7 | + }, |
| 8 | + "packageManager": "[email protected]", |
5 | 9 | "type": "module", |
6 | 10 | "scripts": { |
7 | 11 | "prepare": "simple-git-hooks", |
|
10 | 14 | "serve": "vite preview --port 4173", |
11 | 15 | "type-check": "vue-tsc --noEmit", |
12 | 16 | "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\"", |
15 | 19 | "test:cypress:ui": "cypress open --e2e", |
16 | 20 | "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", |
18 | 22 | "test:playwright:prod": "cross-env E2E_BASE_URL='https://vue3-realworld-example-app-mutoe.vercel.app' playwright test", |
19 | 23 | "test:playwright:ui": "playwright test --ui", |
20 | 24 | "test:playwright:ui:debug": "playwright test --ui --headed --debug", |
|
60 | 64 | }, |
61 | 65 | "simple-git-hooks": { |
62 | 66 | "pre-commit": "npm exec lint-staged", |
63 | | - "pre-push": "npm run type-check && npm run build" |
| 67 | + "pre-push": "pnpm type-check && pnpm build" |
64 | 68 | }, |
65 | 69 | "lint-staged": { |
66 | 70 | "*": "eslint --fix" |
|
0 commit comments