patch node-pty on windows

This commit is contained in:
Labhansh Agrawal 2023-06-30 10:55:44 +05:30
parent 14e76791a0
commit bea0270a3b
3 changed files with 22 additions and 0 deletions

View file

@ -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",

View 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);
}

View file

@ -57,6 +57,10 @@ const config: webpack.Configuration[] = [
{
from: './app/static',
to: './static'
},
{
from: './app/patches',
to: './patches'
}
]
})