Skip to content

Commit

Permalink
Remove ts-replace-all
Browse files Browse the repository at this point in the history
  • Loading branch information
louislefevre committed Sep 10, 2021
1 parent 047d2fa commit 7c6db7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 38 deletions.
34 changes: 1 addition & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
},
"dependencies": {
"async-mutex": "^0.3.2",
"cross-spawn": "^7.0.3",
"ts-replace-all": "^1.0.0"
"cross-spawn": "^7.0.3"
},
"devDependencies": {
"@types/cross-spawn": "^6.0.2",
Expand Down
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { spawn, exec, ChildProcess, SpawnOptionsWithoutStdio } from 'child_proce
import { Readable, Writable } from 'stream';
import { Mutex } from 'async-mutex';
import { promisify } from 'util';
import 'ts-replace-all';

const execute = promisify(exec);

Expand Down Expand Up @@ -233,7 +232,7 @@ export class PythonInteractive {
stdout.on('data', function (data) {
stdoutData += data;
if (stdoutData.includes('#StdoutEnd#')) {
stdoutData = stdoutData.replaceAll('#StdoutEnd#', '');
stdoutData = stdoutData.replace(/#StdoutEnd#/g, '');
stdoutDone = true;
done();
}
Expand All @@ -254,7 +253,7 @@ export class PythonInteractive {
stderr.on('data', function (data) {
stderrData += data;
if (stderrData.includes('#StderrEnd#')) {
stderrData = stderrData.replaceAll('#StderrEnd#', '');
stderrData = stderrData.replace(/#StderrEnd#/g, '');
stderrDone = true;
done();
}
Expand Down

0 comments on commit 7c6db7b

Please # to comment.