import fs , { WriteStream } from 'fs' ; import { EOL } from 'os' ; let writeStream ; export function debug ( msg ) { if ( typeof writeStream === 'undefined' ) { writeStream = fs . createWriteStream ( process . cwd ( ) + '/signal-dev-mode-debug.log' ) ; } writeStream . write ( msg + EOL ) ; }