chore: 升级依赖与工程配置

This commit is contained in:
2026-08-05 17:10:14 +08:00
parent bd55e0a061
commit a9ce5563b1
9 changed files with 853 additions and 639 deletions

View File

@@ -21,28 +21,37 @@
"@dnd-kit/core": "^6.3.1", "@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0", "@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2", "@dnd-kit/utilities": "^3.2.2",
"@rc-component/upload": "^1.1.1",
"@tanstack/react-query": "^5.101.4",
"antd": "^6.3.6", "antd": "^6.3.6",
"axios": "^1.15.1", "axios": "^1.15.1",
"dayjs": "^1.11.20", "dayjs": "^1.11.20",
"echarts": "^6.0.0", "echarts": "^6.0.0",
"echarts-for-react": "^3.0.6", "fast-deep-equal": "^3.1.3",
"lucide-react": "^0.468.0", "file-saver": "^2.0.5",
"mermaid": "^11.16.0",
"react": "^19.2.5", "react": "^19.2.5",
"react-dom": "^19.2.5", "react-dom": "^19.2.5",
"react-router-dom": "^7.14.1", "react-router": "^8.3.0",
"tslib": "^2.8.1", "use-immer": "^0.11.0",
"usehooks-ts": "^3.1.1",
"zod": "^4.4.3",
"zustand": "^5.0.14" "zustand": "^5.0.14"
}, },
"devDependencies": { "devDependencies": {
"@gongxue/typescript-config": "*", "@gongxue/typescript-config": "*",
"@tanstack/react-query-devtools": "^5.101.4",
"@types/file-saver": "^2.0.7",
"@types/node": "^24.12.2", "@types/node": "^24.12.2",
"@types/react": "^19.2.14", "@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@types/react-syntax-highlighter": "^15.5.13",
"@vitejs/plugin-react": "^6.0.1", "@vitejs/plugin-react": "^6.0.1",
"@vitest/browser": "^4.1.10", "@vitest/browser": "^4.1.10",
"@vitest/browser-playwright": "^4.1.10", "@vitest/browser-playwright": "^4.1.10",
"@vitest/coverage-v8": "^4.1.10", "@vitest/coverage-v8": "^4.1.10",
"playwright": "^1.61.1", "playwright": "^1.61.1",
"rollup-plugin-visualizer": "^7.0.1",
"typescript": "~6.0.2", "typescript": "~6.0.2",
"vite": "^8.0.9", "vite": "^8.0.9",
"vitest": "^4.1.10" "vitest": "^4.1.10"

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 343 B

View File

@@ -1,9 +1,15 @@
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react'; import react from '@vitejs/plugin-react';
import { visualizer } from 'rollup-plugin-visualizer';
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [
react(),
...(process.env.BUNDLE_VISUALIZE
? [visualizer({ filename: 'dist/stats.json', template: 'raw-data', gzipSize: true })]
: []),
],
server: { server: {
port: 3002, port: 3002,
proxy: { proxy: {

View File

@@ -6,7 +6,7 @@ import { playwright } from '@vitest/browser-playwright';
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
optimizeDeps: { optimizeDeps: {
include: ['react', 'react-dom', 'react-dom/client', 'react-router-dom'], include: ['react', 'react-dom', 'react-dom/client', 'react-router'],
}, },
resolve: { resolve: {
alias: { alias: {
@@ -37,7 +37,6 @@ export default defineConfig({
include: ['src/**/*.{ts,tsx}'], include: ['src/**/*.{ts,tsx}'],
exclude: ['src/**/*.test.*', 'src/**/*.spec.*'], exclude: ['src/**/*.test.*', 'src/**/*.spec.*'],
}, },
// Setup file for global test helpers
setupFiles: ['./src/test/setup.ts'], setupFiles: ['./src/test/setup.ts'],
}, },
}); });

View File

@@ -46,16 +46,21 @@
"bcryptjs": "^3.0.3", "bcryptjs": "^3.0.3",
"class-transformer": "^0.5.1", "class-transformer": "^0.5.1",
"class-validator": "^0.15.1", "class-validator": "^0.15.1",
"echarts": "^6.1.0", "compression": "^1.8.1",
"dotenv": "^17.4.1",
"exceljs": "^4.4.0", "exceljs": "^4.4.0",
"express": "^5.2.1",
"helmet": "^8.3.0",
"jszip": "^3.10.1",
"mammoth": "^1.12.0", "mammoth": "^1.12.0",
"multer": "^2.2.0", "multer": "^2.2.0",
"mysql2": "^3.22.2", "mysql2": "^3.22.2",
"nestjs-pino": "^4.6.1",
"passport": "^0.7.0", "passport": "^0.7.0",
"passport-jwt": "^4.0.1", "passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"pdf-parse": "^2.4.5", "pdf-parse": "^2.4.5",
"pdfkit": "^0.18.0", "pdfkit": "^0.18.0",
"pino": "^10.3.1",
"reflect-metadata": "^0.2.2", "reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"typeorm": "^0.3.31" "typeorm": "^0.3.31"
@@ -64,28 +69,23 @@
"better-sqlite3": "^12.9.0" "better-sqlite3": "^12.9.0"
}, },
"devDependencies": { "devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0", "@eslint/js": "^9.18.0",
"@gongxue/typescript-config": "*", "@gongxue/typescript-config": "*",
"@nestjs/cli": "^11.0.0", "@nestjs/cli": "^11.0.0",
"@nestjs/schematics": "^11.0.0", "@nestjs/schematics": "^11.0.0",
"@nestjs/testing": "^11.0.1", "@nestjs/testing": "^11.0.1",
"@types/bcryptjs": "^2.4.6",
"@types/better-sqlite3": "^7.6.13", "@types/better-sqlite3": "^7.6.13",
"@types/express": "^5.0.0", "@types/express": "^5.0.0",
"@types/jest": "^30.0.0", "@types/jest": "^30.0.0",
"@types/node": "^24.0.0", "@types/node": "^24.0.0",
"@types/passport-jwt": "^4.0.1", "@types/passport-jwt": "^4.0.1",
"@types/passport-local": "^1.0.38",
"@types/supertest": "^7.0.0", "@types/supertest": "^7.0.0",
"cross-env": "^10.1.0", "cross-env": "^10.1.0",
"eslint": "^9.18.0", "eslint": "^9.18.0",
"globals": "^17.0.0", "globals": "^17.0.0",
"jest": "^30.0.0", "jest": "^30.0.0",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"ts-jest": "^29.2.5", "ts-jest": "^29.2.5",
"ts-loader": "^9.5.2",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0", "tsconfig-paths": "^4.2.0",
"typescript": "~6.0.2", "typescript": "~6.0.2",

View File

@@ -3,6 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "./dist", "outDir": "./dist",
"rootDir": "./", "rootDir": "./",
"types": ["node", "jest"],
"ignoreDeprecations": "6.0" "ignoreDeprecations": "6.0"
} }
} }

1424
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -21,7 +21,21 @@
"rimraf": "^6.1.3", "rimraf": "^6.1.3",
"turbo": "^2.0.0" "turbo": "^2.0.0"
}, },
"dependencies": { "overrides": {
"@fission-ai/openspec": "^1.5.0" "exceljs": {
"uuid": "^11.1.1"
},
"minimatch@3.1.5": {
"brace-expansion": "^1.1.18"
},
"minimatch@5.1.9": {
"brace-expansion": "^2.1.4"
},
"minimatch@9.0.9": {
"brace-expansion": "^2.1.4"
},
"minimatch@10.2.5": {
"brace-expansion": "^5.0.9"
}
} }
} }

View File

@@ -63,5 +63,5 @@ const server = http.createServer((req, res) => {
}); });
server.listen(PORT, () => { server.listen(PORT, () => {
console.log(`Frontend proxy running on http://0.0.0.0:${PORT} → API: ${API_TARGET}`); process.stdout.write(`Frontend proxy running on http://0.0.0.0:${PORT} → API: ${API_TARGET}\n`);
}); });