fix(deps): replace node-pty with @lydell/node-pty for prebuilt binaries
node-pty@1.1.0-beta9 fails to compile on Windows with node-gyp due to MSBuild errors during native module compilation. This blocks installation for Windows users without full Visual Studio Build Tools configured. Solution: - Replace node-pty with @lydell/node-pty which provides prebuilt binaries - Add pnpm override to alias 'node-pty' imports to the new package - Update extraResources path for electron-builder - Remove node-pty from onlyBuiltDependencies (no compilation needed) @lydell/node-pty@1.1.0 provides prebuilt binaries for: - Windows x64 and ARM64 - macOS x64 (Intel) and ARM64 (Apple Silicon) - Linux x64 and ARM64 This eliminates the need for node-gyp compilation and ensures cross-platform compatibility without build tool dependencies.
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
"@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",
|
||||||
|
"@lydell/node-pty": "^1.1.0",
|
||||||
"@radix-ui/react-alert-dialog": "^1.1.15",
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
||||||
"@radix-ui/react-checkbox": "^1.1.4",
|
"@radix-ui/react-checkbox": "^1.1.4",
|
||||||
"@radix-ui/react-collapsible": "^1.1.3",
|
"@radix-ui/react-collapsible": "^1.1.3",
|
||||||
@@ -59,7 +60,6 @@
|
|||||||
"ioredis": "^5.8.2",
|
"ioredis": "^5.8.2",
|
||||||
"lucide-react": "^0.560.0",
|
"lucide-react": "^0.560.0",
|
||||||
"motion": "^12.23.26",
|
"motion": "^12.23.26",
|
||||||
"node-pty": "^1.1.0-beta42",
|
|
||||||
"react": "^19.2.3",
|
"react": "^19.2.3",
|
||||||
"react-dom": "^19.2.3",
|
"react-dom": "^19.2.3",
|
||||||
"react-markdown": "^10.1.0",
|
"react-markdown": "^10.1.0",
|
||||||
@@ -104,12 +104,13 @@
|
|||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"electron-builder-squirrel-windows": "^26.0.12",
|
"electron-builder-squirrel-windows": "^26.0.12",
|
||||||
"dmg-builder": "^26.0.12"
|
"dmg-builder": "^26.0.12",
|
||||||
|
"node-pty": "npm:@lydell/node-pty@^1.1.0"
|
||||||
},
|
},
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
"electron",
|
"electron",
|
||||||
"esbuild",
|
"electron-winstaller",
|
||||||
"node-pty"
|
"esbuild"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
@@ -132,8 +133,8 @@
|
|||||||
],
|
],
|
||||||
"extraResources": [
|
"extraResources": [
|
||||||
{
|
{
|
||||||
"from": "node_modules/node-pty",
|
"from": "node_modules/@lydell/node-pty",
|
||||||
"to": "node_modules/node-pty"
|
"to": "node_modules/@lydell/node-pty"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": "resources/icon.ico",
|
"from": "resources/icon.ico",
|
||||||
@@ -180,5 +181,6 @@
|
|||||||
"*.{ts,tsx}": [
|
"*.{ts,tsx}": [
|
||||||
"eslint --fix"
|
"eslint --fix"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"packageManager": "pnpm@10.26.1+sha512.664074abc367d2c9324fdc18037097ce0a8f126034160f709928e9e9f95d98714347044e5c3164d65bd5da6c59c6be362b107546292a8eecb7999196e5ce58fa"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user