Files
Nano-Banana-AI-Image-Editor/package.json
袁涛 8d31b98736 修复(项目): 优化动态导入和测试配置
- 移除ImageCanvas和HistoryPanel中不必要的useAppStore动态导入
- 添加缺失的Jest测试依赖(jest, ts-jest, jest-environment-jsdom, identity-obj-proxy)
- 修复ImageCanvas测试中的React引用问题和forwardRef支持
- 清理因移除动态导入导致的语法错误
- 优化代码结构,提高构建性能

验证:
- 构建成功通过
- 所有5个测试套件通过(34个测试)
- TypeScript类型检查无错误
2025-12-22 21:12:40 +08:00

97 lines
2.8 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"name": "ano-banana-ai-image-editor",
"private": true,
"version": "0.0.0",
"type": "module",
"description": "一个基于react的 AI 模型实验和原型设计工具,用户可以通过直观的界面与 Google 的大型语言模型(如 Gemini进行交互",
"repository": {
"type": "git",
"url": "https://git.pandorastudio.cn/yuantao/Nano-Banana-AI-Image-Editor.git"
},
"author": {
"name": "潘哆呐科技",
"email": "work@pandorastudio.cn"
},
"main": "electron/index.js",
"scripts": {
"dev": "vite",
"build": "vite build && node copy-favicon.js",
"lint": "eslint .",
"preview": "vite preview",
"test": "jest",
"test:watch": "jest --watch",
"electron:dev": "node electron/dev-runner.js",
"electron:build": "cross-env NODE_ENV=production vite build && electron-builder --win --x64",
"electron:preview": "node electron/prod-runner.js",
"electron:compile": "tsc -p tsconfig.electron.json",
"postinstall": "echo Skipping electron-builder install-app-deps"
},
"dependencies": {
"@google/genai": "^1.16.0",
"@radix-ui/react-dialog": "^1.1.15",
"@tanstack/react-query": "^5.85.5",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"idb-keyval": "^6.2.2",
"konva": "^9.3.22",
"lucide-react": "^0.344.0",
"react": "^18.3.1",
"react-day-picker": "^9.10.0",
"react-dom": "^18.3.1",
"react-konva": "^18.2.10",
"tailwind-merge": "^3.3.1",
"zustand": "^5.0.8"
},
"devDependencies": {
"@eslint/js": "^9.9.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^16.3.0",
"@types/jest": "^30.0.0",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^5.0.4",
"autoprefixer": "^10.4.21",
"cross-env": "^7.0.3",
"electron": "^38.2.1",
"electron-builder": "^26.0.12",
"eslint": "^9.9.1",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.11",
"globals": "^15.9.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"postcss": "^8.5.6",
"tailwindcss": "^3.4.15",
"ts-jest": "^29.4.6",
"typescript": "^5.5.3",
"typescript-eslint": "^8.3.0",
"vite": "^5.4.2"
},
"build": {
"appId": "com.nanobanana.editor",
"productName": "Nano Banana AI Image Editor",
"npmRebuild": false,
"electronDownload": {
"mirror": "https://npmmirror.com/mirrors/electron/",
"customDir": "38.2.1",
"customFilename": "electron-v38.2.1-win32-x64.zip"
},
"directories": {
"output": "release",
"buildResources": "build"
},
"files": [
"dist/**/*",
"electron/**/*",
"package.json"
],
"win": {
"target": [
"nsis",
"zip"
],
"icon": "build/icon.ico"
}
}
}