Skip to content

Commit 4325092

Browse files
committed
Move server runtime dependencies to dependencies section
- Move cors, express, ws from devDependencies to dependencies - These are required at runtime for server mode to work - Fixes 'cors cannot be found' error when running as npm package
1 parent cbdacfa commit 4325092

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@
5252
"ai-tokenizer": "^1.0.3",
5353
"chalk": "^5.6.2",
5454
"cmdk": "^1.0.0",
55+
"cors": "^2.8.5",
5556
"crc-32": "^1.2.2",
5657
"diff": "^8.0.2",
5758
"disposablestack": "^1.1.7",
5859
"electron-updater": "^6.6.2",
5960
"escape-html": "^1.0.3",
61+
"express": "^5.1.0",
6062
"jsonc-parser": "^3.3.1",
6163
"lru-cache": "^11.2.2",
6264
"markdown-it": "^14.1.0",
@@ -78,6 +80,7 @@
7880
"source-map-support": "^0.5.21",
7981
"undici": "^7.16.0",
8082
"write-file-atomic": "^6.0.0",
83+
"ws": "^8.18.3",
8184
"zod": "^4.1.11",
8285
"zod-to-json-schema": "^3.24.6"
8386
},
@@ -112,7 +115,6 @@
112115
"@vitejs/plugin-react": "^4.0.0",
113116
"babel-plugin-react-compiler": "^1.0.0",
114117
"concurrently": "^8.2.0",
115-
"cors": "^2.8.5",
116118
"dotenv": "^17.2.3",
117119
"electron": "^38.2.1",
118120
"electron-builder": "^24.6.0",
@@ -121,7 +123,6 @@
121123
"eslint": "^9.36.0",
122124
"eslint-plugin-react": "^7.37.5",
123125
"eslint-plugin-react-hooks": "^5.2.0",
124-
"express": "^5.1.0",
125126
"jest": "^30.1.3",
126127
"playwright": "^1.56.0",
127128
"prettier": "^3.6.2",
@@ -132,8 +133,7 @@
132133
"typescript-eslint": "^8.45.0",
133134
"vite": "^4.4.0",
134135
"vite-plugin-svgr": "^4.5.0",
135-
"vite-plugin-top-level-await": "^1.6.0",
136-
"ws": "^8.18.3"
136+
"vite-plugin-top-level-await": "^1.6.0"
137137
},
138138
"files": [
139139
"dist/**/*.js",

0 commit comments

Comments
 (0)