Skip to content

Commit c630120

Browse files
committed
fix: gritty: get back node-pty
1 parent 904673c commit c630120

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
"express"
4343
],
4444
"dependencies": {
45-
"@lydell/node-pty": "^1.0.0-beta.4",
4645
"currify": "^4.0.0",
4746
"debug": "^4.0.1",
4847
"express": "^4.14.0",
48+
"node-pty": "^1.0.0",
4949
"router": "^1.3.3",
5050
"socket.io": "^4.0.0",
5151
"squad": "^3.0.0",

server/gritty.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const Router = require('router');
99

1010
const currify = require('currify');
1111
const wraptile = require('wraptile');
12-
//const _pty = require('node-pty');
13-
const _pty = require('@lydell/node-pty');
12+
const _pty = require('node-pty');
1413

1514
const stringArgv = require('string-to-argv');
1615
const isBool = (a) => typeof a === 'boolean';

test/server/gritty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ test('gritty: server: terminal: parse args', async (t) => {
156156
const {port, done} = await connect();
157157
const socket = io(`http://localhost:${port}/gritty`);
158158

159-
mockRequire('@lydell/node-pty', {
159+
mockRequire('node-pty', {
160160
spawn: stub(),
161161
});
162162

0 commit comments

Comments
 (0)