4ee0e546e3
- 加入缺失的 @testing-library/dom 依赖(RTL v16 必需 peer),修复 screen 导入 - 修正测试文件错误的相对导入路径(header 改具名导入;prompts/courses 指向 ../page) - 修正联盟/打赏迁移 SQL:Prisma 列名为 camelCase(仅 @@map 映射表名),原 snake_case 列名导致查询 500,已重建表 - npm run typecheck 现已通过(EXIT=0)
82 lines
2.4 KiB
JSON
Executable File
82 lines
2.4 KiB
JSON
Executable File
{
|
|
"name": "@yuzhiran/frontend",
|
|
"version": "1.0.0",
|
|
"description": "宇之然 AI - 官网前端",
|
|
"private": true,
|
|
"scripts": {
|
|
"predev": "rm -rf out",
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"postbuild": "node scripts/generate-sitemap.js",
|
|
"typecheck": "tsc --noEmit",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "npx playwright test",
|
|
"test:e2e:ui": "npx playwright test --ui",
|
|
"test:e2e:headed": "npx playwright test --headed",
|
|
"test:e2e:report": "npx playwright show-report"
|
|
},
|
|
"keywords": [
|
|
"yuzhiran",
|
|
"ai",
|
|
"learning",
|
|
"platform"
|
|
],
|
|
"author": "北京宇之然科技中心",
|
|
"license": "UNLICENSED",
|
|
"dependencies": {
|
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
"@radix-ui/react-popover": "^1.1.15",
|
|
"@radix-ui/react-progress": "^1.1.8",
|
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-separator": "^1.1.8",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@radix-ui/react-switch": "^1.2.6",
|
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
"@radix-ui/react-toast": "^1.2.15",
|
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
"@types/node": "^25.6.2",
|
|
"autoprefixer": "^10.5.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"dompurify": "^3.4.9",
|
|
"framer-motion": "^12.38.0",
|
|
"highlight.js": "^11.11.1",
|
|
"lucide-react": "^1.14.0",
|
|
"marked": "^18.0.5",
|
|
"next": "^14.2.35",
|
|
"next-themes": "^0.4.6",
|
|
"postcss": "^8.5.14",
|
|
"qrcode": "^1.5.4",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-is": "^18.3.1",
|
|
"recharts": "^3.8.1",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.6.0",
|
|
"tailwindcss": "^3.4.19",
|
|
"typescript": "5.3"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.60.0",
|
|
"@testing-library/dom": "^10.4.1",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/dompurify": "^3.0.5",
|
|
"@types/qrcode": "^1.5.6",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
"@typescript-eslint/parser": "^8.60.0",
|
|
"eslint": "^8.57.1",
|
|
"eslint-config-next": "^16.2.6",
|
|
"jsdom": "^29.1.1",
|
|
"vitest": "^4.1.10"
|
|
}
|
|
}
|