mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
patch node-pty on windows
This commit is contained in:
parent
14e76791a0
commit
bea0270a3b
3 changed files with 22 additions and 0 deletions
|
|
@ -9,6 +9,9 @@
|
|||
"email": "team@zeit.co"
|
||||
},
|
||||
"repository": "zeit/hyper",
|
||||
"scripts": {
|
||||
"postinstall": "npx patch-package"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/parser": "7.22.5",
|
||||
"@electron/remote": "2.0.10",
|
||||
|
|
|
|||
15
app/patches/node-pty+1.0.0.patch
Normal file
15
app/patches/node-pty+1.0.0.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
diff --git a/node_modules/node-pty/src/win/conpty.cc b/node_modules/node-pty/src/win/conpty.cc
|
||||
index 47af75c..884d542 100644
|
||||
--- a/node_modules/node-pty/src/win/conpty.cc
|
||||
+++ b/node_modules/node-pty/src/win/conpty.cc
|
||||
@@ -472,10 +472,6 @@ static NAN_METHOD(PtyKill) {
|
||||
}
|
||||
}
|
||||
|
||||
- DisconnectNamedPipe(handle->hIn);
|
||||
- DisconnectNamedPipe(handle->hOut);
|
||||
- CloseHandle(handle->hIn);
|
||||
- CloseHandle(handle->hOut);
|
||||
CloseHandle(handle->hShell);
|
||||
}
|
||||
|
||||
|
|
@ -57,6 +57,10 @@ const config: webpack.Configuration[] = [
|
|||
{
|
||||
from: './app/static',
|
||||
to: './static'
|
||||
},
|
||||
{
|
||||
from: './app/patches',
|
||||
to: './patches'
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue