Skip to content

Commit d216505

Browse files
committed
Removed done from being printed to stdout
1 parent 821c849 commit d216505

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codify-plugin-lib",
3-
"version": "1.0.125",
3+
"version": "1.0.127",
44
"description": "Library plugin library",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",

src/pty/background-pty.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ describe('BackgroundPty tests', () => {
1414

1515
const exitCode = await pty.kill();
1616
expect(exitCode).toMatchObject({
17-
exitCode: 1,
18-
signal: 0,
17+
exitCode: 0,
1918
});
2019
})
2120

src/pty/background-pty.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export class BackgroundPty implements IPty {
5555

5656
return new Promise<SpawnResult>((resolve) => {
5757
const cat = cp.spawn('cat', [`/tmp/${cid}`])
58-
cat.stdout.pipe(process.stdout);
5958

6059
let output = '';
6160
cat.stdout.on('data', (data) => {
@@ -76,6 +75,8 @@ export class BackgroundPty implements IPty {
7675
exitCode: Number.parseInt(exit ?? 1, 10),
7776
data: strippedData,
7877
});
78+
} else {
79+
process.stdout.write(data);
7980
}
8081
})
8182

0 commit comments

Comments
 (0)