const path = require ( "path" ) ; const { workerData } = require ( "worker_threads" ) ; require ( "ts-node" ) . register ( { compilerOptions : { target : "ES2020" , esModuleInterop : true } , } ) ; console . log ( "start worker" , path . resolve ( __dirname , workerData . path ) ) ; require ( path . resolve ( __dirname , workerData . path ) ) ;