@@ -63,17 +63,9 @@ import {
6363import { ZodIpcConnection } from "@trigger.dev/core/v3/zodIpc" ;
6464import { readFile } from "node:fs/promises" ;
6565import { setInterval , setTimeout } from "node:timers/promises" ;
66- import sourceMapSupport from "source-map-support" ;
67- import { env } from "std-env" ;
68- import { normalizeImportPath } from "../utilities/normalizeImportPath.js" ;
69- import { VERSION } from "../version.js" ;
70- import { promiseWithResolvers } from "@trigger.dev/core/utils" ;
71-
72- sourceMapSupport . install ( {
73- handleUncaughtExceptions : false ,
74- environment : "node" ,
75- hookRequire : false ,
76- } ) ;
66+ import { installSourceMapSupport } from "../utilities/sourceMaps.js" ;
67+
68+ installSourceMapSupport ( ) ;
7769
7870process . on ( "uncaughtException" , function ( error , origin ) {
7971 logError ( "Uncaught exception" , { error, origin } ) ;
@@ -109,9 +101,8 @@ process.on("uncaughtException", function (error, origin) {
109101 }
110102} ) ;
111103
112- process . title = `trigger-dev-run-worker (${
113- getEnvVar ( "TRIGGER_WORKER_VERSION" ) ?? "unknown version"
114- } )`;
104+ process . title = `trigger-dev-run-worker (${ getEnvVar ( "TRIGGER_WORKER_VERSION" ) ?? "unknown version"
105+ } )`;
115106
116107const heartbeatIntervalMs = getEnvVar ( "HEARTBEAT_INTERVAL_MS" ) ;
117108
@@ -156,7 +147,7 @@ const standardRealtimeStreamsManager = new StandardRealtimeStreamsManager(
156147 apiClientManager . clientOrThrow ( ) ,
157148 getEnvVar ( "TRIGGER_STREAM_URL" , getEnvVar ( "TRIGGER_API_URL" ) ) ?? "https://api.trigger.dev" ,
158149 ( getEnvVar ( "TRIGGER_STREAMS_DEBUG" ) === "1" || getEnvVar ( "TRIGGER_STREAMS_DEBUG" ) === "true" ) ??
159- false
150+ false
160151) ;
161152realtimeStreams . setGlobalManager ( standardRealtimeStreamsManager ) ;
162153
@@ -285,12 +276,12 @@ async function doBootstrap() {
285276
286277let bootstrapCache :
287278 | {
288- tracer : TriggerTracer ;
289- tracingSDK : TracingSDK ;
290- consoleInterceptor : ConsoleInterceptor ;
291- config : TriggerConfig ;
292- workerManifest : WorkerManifest ;
293- }
279+ tracer : TriggerTracer ;
280+ tracingSDK : TracingSDK ;
281+ consoleInterceptor : ConsoleInterceptor ;
282+ config : TriggerConfig ;
283+ workerManifest : WorkerManifest ;
284+ }
294285 | undefined ;
295286
296287async function bootstrap ( ) {
0 commit comments