mirror of
https://github.com/TencentCloud/Octop.git
synced 2026-09-28 19:33:02 +08:00
`NODE_ENV=production vite build` inside the build script uses Unix shell syntax; npm executes scripts with cmd.exe on Windows, so the script dies with "'NODE_ENV' is not recognized" before vite runs. CI only builds the dashboard on Linux, so this only bites local Windows builds (make build-frontend / pre-commit). Drop the redundant prefix: vite build already defaults to production mode, build:docker uses plain vite build, and the Makefile build-frontend target still exports NODE_ENV=production for callers that want it.
87 lines
2.5 KiB
JSON
87 lines
2.5 KiB
JSON
{
|
|
"name": "octop-dashboard",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite --host",
|
|
"build": "tsc -b && vite build",
|
|
"build:docker": "vite build",
|
|
"build:prod": "tsc -b && vite build --mode production",
|
|
"build:test": "tsc -b && vite build --mode test",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"lint": "eslint .",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"preview": "vite preview",
|
|
"preview:prod": "vite preview --mode production",
|
|
"preview:test": "vite preview --mode test"
|
|
},
|
|
"dependencies": {
|
|
"@aiden0z/pptx-renderer": "^1.2.4",
|
|
"@mermaid-js/parser": "^1.1.0",
|
|
"@monaco-editor/react": "^4.7.0",
|
|
"@xterm/addon-fit": "0.10.0",
|
|
"@xterm/addon-web-links": "0.11.0",
|
|
"@xterm/xterm": "5.5.0",
|
|
"ahooks": "^3.9.6",
|
|
"antd": "^5.29.1",
|
|
"antd-style": "^3.7.1",
|
|
"build": "^0.1.4",
|
|
"docx-preview": "^0.3.2",
|
|
"i18next": "^25.8.4",
|
|
"jszip": "^3.10.1",
|
|
"lucide-react": "^0.562.0",
|
|
"mermaid": "^11.13.0",
|
|
"qrcode.react": "^4.2.0",
|
|
"react": "^18",
|
|
"react-dom": "^18",
|
|
"react-i18next": "^16.5.4",
|
|
"react-json-view-lite": "^2.5.0",
|
|
"react-markdown": "^10.1.0",
|
|
"react-pdf": "^10.5.0",
|
|
"react-router-dom": "^7.13.0",
|
|
"react-syntax-highlighter": "^16.1.1",
|
|
"react-virtuoso": "^4.18.10",
|
|
"recharts": "^3.10.1",
|
|
"rehype-katex": "^7.0.1",
|
|
"remark-gfm": "^4.0.1",
|
|
"remark-math": "^6.0.0",
|
|
"xlsx": "^0.18.5"
|
|
},
|
|
"overrides": {
|
|
"serialize-javascript": "^7.0.3",
|
|
"@rollup/plugin-terser": "^1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.25.0",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/i18next": "^12.1.0",
|
|
"@types/node": "^25.0.3",
|
|
"@types/pngjs": "^6.0.5",
|
|
"@types/react": "^18",
|
|
"@types/react-dom": "^18",
|
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
"@vitejs/plugin-react": "^4.4.1",
|
|
"@vitest/coverage-v8": "^3.2.6",
|
|
"eslint": "^9.25.0",
|
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
"globals": "^16.0.0",
|
|
"jsdom": "^25.0.1",
|
|
"less": "^4.5.1",
|
|
"pngjs": "^7.0.0",
|
|
"prettier": "3.0.0",
|
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
"typescript": "~5.8.3",
|
|
"typescript-eslint": "^8.30.1",
|
|
"vite": "^6.3.5",
|
|
"vite-plugin-pwa": "^0.21.2",
|
|
"vitest": "^3.2.6"
|
|
}
|
|
}
|