92 lines
2.2 KiB
JSON
92 lines
2.2 KiB
JSON
{
|
|
"name": "cc-switch",
|
|
"version": "2.0.1",
|
|
"description": "Claude Code 供应商切换工具",
|
|
"main": "dist/main/index.js",
|
|
"scripts": {
|
|
"dev": "concurrently -k \"npm:dev:renderer\" \"npm:dev:electron:watch\"",
|
|
"dev:electron": "tsc -p tsconfig.main.json && electron .",
|
|
"dev:electron:watch": "tsc -p tsconfig.main.json && concurrently -k \"tsc -w -p tsconfig.main.json\" \"npm:electron\"",
|
|
"electron": "electron .",
|
|
"dev:renderer": "vite",
|
|
"build": "npm run build:renderer && npm run build:main",
|
|
"build:main": "tsc -p tsconfig.main.json",
|
|
"build:renderer": "vite build",
|
|
"start": "electron .",
|
|
"dist": "electron-builder"
|
|
},
|
|
"keywords": [],
|
|
"author": "Jason Young",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@types/node": "^20.0.0",
|
|
"@types/react": "^18.2.0",
|
|
"@types/react-dom": "^18.2.0",
|
|
"@vitejs/plugin-react": "^4.2.0",
|
|
"concurrently": "^8.2.0",
|
|
"electron": "^32.3.3",
|
|
"electron-builder": "^24.0.0",
|
|
"typescript": "^5.3.0",
|
|
"vite": "^5.0.0"
|
|
},
|
|
"dependencies": {
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0"
|
|
},
|
|
"build": {
|
|
"appId": "com.ccswitch.app",
|
|
"productName": "CC Switch",
|
|
"compression": "maximum",
|
|
"publish": null,
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"icon": "build/icon.ico",
|
|
"files": [
|
|
"dist/**/*",
|
|
"node_modules/**/*"
|
|
],
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowToChangeInstallationDirectory": true
|
|
},
|
|
"mac": {
|
|
"category": "public.app-category.developer-tools",
|
|
"icon": "build/icon.icns",
|
|
"identity": "-",
|
|
"hardenedRuntime": false,
|
|
"entitlements": null,
|
|
"entitlementsInherit": null,
|
|
"target": [
|
|
{
|
|
"target": "zip",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
},
|
|
{
|
|
"target": "portable",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
}
|
|
],
|
|
"icon": "build/icon.ico"
|
|
},
|
|
"linux": {
|
|
"target": "AppImage",
|
|
"icon": "build/icon.png"
|
|
}
|
|
}
|
|
}
|