Skip to content

Commit e555355

Browse files
author
catlog22
committed
feat: 更新依赖项,提升 TypeScript 和 Playwright 测试库版本,支持 Node.js 18+
1 parent 23f752b commit e555355

5 files changed

Lines changed: 86 additions & 52 deletions

File tree

ccw/docs-site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@docusaurus/tsconfig": "^3.5.2",
3131
"@docusaurus/types": "^3.5.2",
3232
"@types/react": "^18.3.12",
33-
"typescript": "~5.5.4"
33+
"typescript": "^5.9.3"
3434
},
3535
"browserslist": {
3636
"production": [

ccw/frontend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@
5454
"sonner": "^2.0.7",
5555
"tailwind-merge": "^2.5.0",
5656
"web-vitals": "^5.1.0",
57-
"zod": "^3.23.8",
57+
"zod": "^4.1.13",
5858
"zustand": "^5.0.0"
5959
},
6060
"devDependencies": {
61-
"@playwright/test": "^1.40.0",
61+
"@playwright/test": "^1.57.0",
6262
"@testing-library/jest-dom": "^6.9.1",
6363
"@testing-library/react": "^14.0.0",
6464
"@testing-library/user-event": "^14.0.0",
@@ -75,7 +75,7 @@
7575
"tailwindcss": "^3.4.0",
7676
"tailwindcss-animate": "^1.0.7",
7777
"tsx": "^4.19.0",
78-
"typescript": "^5.6.0",
78+
"typescript": "^5.9.3",
7979
"vite": "^6.0.0",
8080
"vitest": "^2.0.0"
8181
}

ccw/package.json

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,21 @@
66
"author": "CCW Team",
77
"license": "MIT",
88
"type": "module",
9-
"workspaces": [
10-
"frontend",
11-
"docs-site"
12-
],
139
"scripts": {
14-
"dev": "npm run dev --workspace=frontend",
15-
"dev:docs": "npm run start --workspace=docs-site",
10+
"dev": "cd frontend && npm run dev",
11+
"dev:docs": "cd docs-site && npm run start",
1612
"dev:all": "concurrently \"npm run dev\" \"npm run dev:docs\" --names \"FRONTEND,DOCS\" --prefix-colors \"blue,green\"",
17-
"build": "npm run build --workspace=docs-site && npm run build --workspace=frontend",
18-
"build:frontend": "npm run build --workspace=frontend",
19-
"build:docs": "npm run build --workspace=docs-site",
20-
"clean": "npm run clean --workspace=frontend && npm run clean --workspace=docs-site",
21-
"clean:node_modules": "npm exec --workspaces -- rm -rf node_modules",
22-
"lint": "npm run lint --workspace=frontend",
23-
"lint:fix": "npm run lint:fix --workspace=frontend",
24-
"test": "npm run test --workspace=frontend",
25-
"test:coverage": "npm run test:coverage --workspace=frontend",
26-
"test:e2e": "npm run test:e2e --workspace=frontend",
27-
"validate": "npm run validate:i18n --workspace=frontend",
28-
"serve": "npm run serve --workspace=docs-site",
29-
"preview": "npm run preview --workspace=frontend"
13+
"build": "cd docs-site && npm run build && cd ../frontend && npm run build",
14+
"build:frontend": "cd frontend && npm run build",
15+
"build:docs": "cd docs-site && npm run build",
16+
"lint": "cd frontend && npm run lint",
17+
"lint:fix": "cd frontend && npm run lint:fix",
18+
"test": "cd frontend && npm run test",
19+
"test:coverage": "cd frontend && npm run test:coverage",
20+
"test:e2e": "cd frontend && npm run test:e2e",
21+
"validate": "cd frontend && npm run validate:i18n",
22+
"serve": "cd docs-site && npm run serve",
23+
"preview": "cd frontend && npm run preview"
3024
},
3125
"devDependencies": {
3226
"concurrently": "^9.1.2"

package-lock.json

Lines changed: 68 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"author": "dyw",
4141
"license": "MIT",
4242
"engines": {
43-
"node": ">=16.0.0"
43+
"node": ">=18.0.0"
4444
},
4545
"dependencies": {
4646
"@modelcontextprotocol/sdk": "^1.0.4",

0 commit comments

Comments
 (0)