mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-16 04:28:39 +00:00
Mermaid 12 depends on katex ^0.18, so the katex override added for Dependabot alert 84 is no longer needed and is removed. Mermaid 12 changes the defaults to the ELK layout and the neo look with the redux-color theme. Pin layout, theme and look to their v11 values so existing skill documents render as before. This also keeps the lazy 1.4 MB ELK chunk from loading. Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
94 lines
3 KiB
JSON
94 lines
3 KiB
JSON
{
|
|
"name": "skillhub-web",
|
|
"private": true,
|
|
"version": "0.1.18",
|
|
"type": "module",
|
|
"packageManager": "pnpm@10.33.0",
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"esbuild"
|
|
],
|
|
"overrides": {
|
|
"vite@<6.4.3": "^6.4.3",
|
|
"esbuild@<0.28.1": "^0.28.1",
|
|
"js-yaml@<4.3.2": "^4.3.2",
|
|
"browserslist@<4.28.7": "^4.28.7",
|
|
"undici@<7.29.1": "^7.29.1",
|
|
"@babel/core@<7.29.6": "^7.29.6",
|
|
"postcss@<8.5.23": "^8.5.23",
|
|
"postcss-selector-parser@<7.1.6": "^7.1.6",
|
|
"nanoid@<3.3.18": "^3.3.18",
|
|
"seroval@<=1.5.2": "^1.5.3",
|
|
"picomatch@<2.3.2": "^2.3.2",
|
|
"picomatch@>=4.0.0 <4.0.4": "^4.0.4",
|
|
"flatted@<3.4.2": "^3.4.2",
|
|
"brace-expansion@<1.1.21": "^1.1.21",
|
|
"brace-expansion@>=2.0.0 <2.1.7": "^2.1.7",
|
|
"dompurify@<3.4.16": "^3.4.16",
|
|
"source-map-js@<1.2.2": "^1.2.2"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"install:ci": "pnpm install --frozen-lockfile",
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:smoke": "playwright test -c playwright.smoke.config.ts",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
"generate-api": "openapi-typescript http://localhost:8080/v3/api-docs -o src/api/generated/schema.d.ts"
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-dialog": "^1.1.23",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@tanstack/react-query": "^5.64.0",
|
|
"@tanstack/react-router": "^1.95.0",
|
|
"class-variance-authority": "^0.7.0",
|
|
"clsx": "^2.1.0",
|
|
"i18next": "^25.8.18",
|
|
"i18next-browser-languagedetector": "^8.2.1",
|
|
"lowlight": "^3.3.0",
|
|
"lucide-react": "^0.344.0",
|
|
"mermaid": "^12.2.0",
|
|
"openapi-fetch": "^0.13.8",
|
|
"react": "^19.0.0",
|
|
"react-diff-viewer-continued": "^4.2.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-dropzone": "^15.0.0",
|
|
"react-i18next": "^16.5.8",
|
|
"react-markdown": "^10.1.0",
|
|
"rehype-highlight": "^7.0.2",
|
|
"rehype-sanitize": "^6.0.0",
|
|
"remark-frontmatter": "^5.0.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^2.2.1",
|
|
"unist-util-visit": "^5.0.0",
|
|
"zustand": "^5.0.11"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.58.2",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/mdast": "^4.0.4",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
"@typescript-eslint/parser": "^7.0.0",
|
|
"@vitejs/plugin-react": "^4.3.0",
|
|
"autoprefixer": "^10.4.0",
|
|
"eslint": "^8.57.0",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
"jsdom": "^29.1.1",
|
|
"openapi-typescript": "^7.6.1",
|
|
"postcss": "^8.5.23",
|
|
"tailwindcss": "^3.4.0",
|
|
"typescript": "^5.7.0",
|
|
"vite": "^6.4.3",
|
|
"vitest": "^4.1.11"
|
|
}
|
|
}
|