File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 11import assert from 'assert'
22import { ChildProcessWithoutNullStreams , execSync , spawn } from 'child_process'
3- import * as fs from 'fs'
43import { createWriteStream , mkdirSync , WriteStream } from 'fs'
54import * as os from 'os'
65import path , { dirname } from 'path'
@@ -172,16 +171,6 @@ const createPersistantProcess = (
172171 }
173172 } )
174173
175- if ( process . env . NEXT_PUBLIC_CB_ENVIRONMENT === 'local' ) {
176- persistentPty . onData ( ( data : string ) => {
177- mkdirSync ( 'debug' , { recursive : true } )
178- fs . appendFileSync (
179- 'debug/terminal.log' ,
180- `${ Date . now ( ) } : ${ JSON . stringify ( { data } ) } temporary debug log for pty data\n`
181- )
182- } )
183- }
184-
185174 return persistentProcessInfo
186175 } else {
187176 // Fallback to child_process
You can’t perform that action at this time.
0 commit comments