import * as observableProcess from "observable-process" ; /** CurrentServer provides global access to the currently running server process. */ export class CurrentServer { static instance ( ) { return instance ; } process : observableProcess . RunningProcess | null ; constructor ( ) { this . process = null ; } hasProcess ( ) { return this . process != null ; } async kill ( ) { await this . process ?. kill ( ) ; } reset ( ) { this . process = null ; } set ( process ) { this . process = process ; } } const instance = new CurrentServer ( ) ;