Skip to content

Commit 692eb84

Browse files
committed
fix(deps): add restore-cursor signal-exit v4 compatibility patch
1 parent 30a5cec commit 692eb84

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@
210210
"execa@5.1.1": "patches/execa@5.1.1.patch",
211211
"ink@6.3.1": "patches/ink@6.3.1.patch",
212212
"node-gyp@11.5.0": "patches/node-gyp@11.5.0.patch",
213-
"node-gyp@12.1.0": "patches/node-gyp@12.1.0.patch"
213+
"node-gyp@12.1.0": "patches/node-gyp@12.1.0.patch",
214+
"restore-cursor@4.0.0": "patches/restore-cursor@4.0.0.patch"
214215
}
215216
},
216217
"lint-staged": {

patches/restore-cursor@4.0.0.patch

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/index.js b/index.js
2+
index 0c117e9ad6090501d9e37081db67a9155eb5d1b7..4c87ff9d12b452f4cf1b96b80a8c5f6d4c475d6d 100644
3+
--- a/index.js
4+
+++ b/index.js
5+
@@ -1,9 +1,9 @@
6+
import process from 'node:process';
7+
import onetime from 'onetime';
8+
-import signalExit from 'signal-exit';
9+
+import { onExit } from 'signal-exit';
10+
11+
const restoreCursor = onetime(() => {
12+
- signalExit(() => {
13+
+ onExit(() => {
14+
process.stderr.write('\u001B[?25h');
15+
}, {alwaysLast: true});
16+
});

pnpm-lock.yaml

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)