-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
208 lines (208 loc) · 6.61 KB
/
Copy pathpackage.json
File metadata and controls
208 lines (208 loc) · 6.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
{
"name": "new-world-chat-ai",
"description": "Generate Chatmessage for New World with Ai and Humor.",
"private": false,
"version": "1.8.0",
"type": "module",
"homepage": "https://involvex.github.io/new-world-chat-ai/",
"author": {
"name": "Ina Venox",
"url": "https://involvex.github.io/new-world-chat-ai/"
},
"license": "MIT",
"github": {
"url": "https://github.com/involvex/new-world-chat-ai.git"
},
"main": "electron/main.js",
"scripts": {
"dev": "vite",
"build": "vite build",
"build:web": "bun run scripts/build-web.js",
"build:analyze": "vite build --mode analyze",
"preview": "vite preview",
"electron": "electron .",
"electron:dev": "concurrently \"bun run dev\" \"wait-on http://localhost:5173 && cross-env NODE_ENV=development electron .\"",
"electron:prod": "bun run build && cross-env NODE_ENV=production electron .",
"build:electron": "bun run build && electron-builder",
"dist": "bun run build && electron-builder --publish=never",
"prebuild": "bun run clean:build && bun run check:env",
"postbuild": "bun run validate:build",
"prerelease": "bun run validate:all",
"release": "bun run clean && bun run typecheck && bun run build && bun run package:all",
"release:win": "bun run clean && bun run typecheck && bun run build && bun run package:win",
"release:mac": "bun run clean && bun run typecheck && bun run build && bun run package:mac",
"release:linux": "bun run clean && bun run typecheck && bun run build && bun run package:linux",
"package:all": "bun run package:win && echo 'Windows build complete' || bun run handle:build-error",
"package:win": "bun run scripts/robust-builder.cjs win || bun run handle:build-error",
"package:mac": "bun run scripts/robust-builder.cjs mac || bun run handle:build-error",
"package:linux": "bun run scripts/robust-builder.cjs linux || bun run handle:build-error",
"handle:build-error": "echo 'Build failed - checking for partial builds...' && bun run recover:build",
"recover:build": "bun run scripts/build-validator.cjs recover",
"validate:all": "bun run scripts/build-validator.cjs validate",
"validate:deps": "bun run scripts/build-validator.cjs deps",
"validate:icons": "bun run scripts/build-validator.cjs icons",
"validate:build": "bun run scripts/build-validator.cjs build",
"check:env": "bun run scripts/build-validator.cjs env",
"clean": "bun run scripts/robust-cleanup.cjs all",
"clean:all": "bun run scripts/robust-cleanup.cjs all",
"clean:build": "rimraf dist-electron",
"clean:cache": "bun run scripts/robust-cleanup.cjs cache",
"clean:temp": "bun run scripts/robust-cleanup.cjs temp",
"kill:processes": "bun run scripts/robust-cleanup.cjs kill",
"lint": "echo 'Add linting if needed'",
"test": "echo 'Add tests if needed'",
"typecheck": "tsc --noEmit",
"postinstall": "electron-builder install-app-deps"
},
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@fontsource/roboto": "^5.2.6",
"@google/genai": "^1.9.0",
"@material/web": "^2.3.0",
"@mui/icons-material": "^7.2.0",
"@mui/material": "^7.2.0",
"@mui/styled-engine-sc": "^7.2.0",
"@rollup/plugin-node-resolve": "^16.0.1",
"@tailwindcss/vite": "^4.1.11",
"@toolpad/core": "^0.16.0",
"@types/node": "^24.12.2",
"@types/react": "^19.1.8",
"lit-html": "^3.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"rollup": "^4.45.1",
"styled-components": "^6.1.19",
"tailwindcss": "^4.1.11"
},
"devDependencies": {
"@electron/rebuild": "^4.0.1",
"@types/bun": "^1.3.13",
"@types/react-dom": "^19.1.6",
"@vitejs/plugin-react": "^4.7.0",
"concurrently": "^9.2.0",
"cross-env": "^7.0.3",
"electron": "^37.2.3",
"electron-builder": "^26.0.18",
"png-to-ico": "^2.1.8",
"rimraf": "^6.0.1",
"robotjs": "^0.6.0",
"typescript": "^5.8.3",
"vite": "^7.0.4",
"vite-plugin-static-copy": "^3.4.0",
"wait-on": "^8.0.5"
},
"build": {
"appId": "com.involvex.new-world-chat-ai",
"productName": "New World Chat AI",
"buildVersion": "1.8.0",
"directories": {
"output": "dist-electron",
"buildResources": "build"
},
"files": [
"dist/**/*",
"electron/**/*",
"package.json",
"build/**/*",
"!node_modules/**/*",
"!src/**/*",
"!scripts/**/*",
"!*.log",
"build/icon.png",
"bundle.js"
],
"extraResources": [
{
"from": "build/",
"to": "build/",
"filter": [
"**/*"
]
}
],
"compression": "normal",
"nodeGypRebuild": false,
"buildDependenciesFromSource": false,
"npmRebuild": false,
"asar": true,
"asarUnpack": [
"node_modules/robotjs/**"
],
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
},
{
"target": "portable",
"arch": [
"x64"
]
}
],
"icon": "build/icon.png",
"requestedExecutionLevel": "asInvoker",
"artifactName": "${productName}-${version}-${arch}.${ext}"
},
"mac": {
"target": "dmg",
"icon": "build/icon.icns",
"category": "public.app-category.games",
"artifactName": "${productName}-${version}.${ext}",
"hardenedRuntime": false,
"gatekeeperAssess": false
},
"linux": {
"target": [
{
"target": "AppImage",
"arch": [
"x64"
]
},
{
"target": "deb",
"arch": [
"x64"
]
}
],
"icon": "build/icon.png",
"category": "Game",
"artifactName": "${productName}-${version}.${ext}"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "New World Chat AI",
"artifactName": "${productName} Setup ${version}.${ext}",
"deleteAppDataOnUninstall": false
},
"portable": {
"artifactName": "${productName}-${version}-portable.${ext}"
},
"dmg": {
"title": "New World Chat AI ${version}",
"artifactName": "${productName}-${version}.${ext}",
"writeUpdateInfo": false
},
"appImage": {
"artifactName": "${productName}-${version}.${ext}"
},
"deb": {
"artifactName": "${productName}-${version}.${ext}"
},
"afterSign": "scripts/notarize.cjs",
"afterPack": "scripts/after-pack.cjs"
},
"trustedDependencies": [
"@google/genai",
"protobufjs"
]
}