We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39f0308 commit f43e3f7Copy full SHA for f43e3f7
1 file changed
packages/cli-v3/src/entryPoints/managed-run-worker.ts
@@ -324,6 +324,18 @@ const zodIpc = new ZodIpcConnection({
324
async () => {
325
const beforeImport = performance.now();
326
resourceCatalog.setCurrentFileContext(taskManifest.entryPoint, taskManifest.filePath);
327
+
328
+ // Load init file if it exists
329
+ if (workerManifest.initEntryPoint) {
330
+ try {
331
+ await import(normalizeImportPath(workerManifest.initEntryPoint));
332
+ console.log(`Loaded init file from ${workerManifest.initEntryPoint}`);
333
+ } catch (err) {
334
+ console.error(`Failed to load init file`, err);
335
+ throw err;
336
+ }
337
338
339
await import(normalizeImportPath(taskManifest.entryPoint));
340
resourceCatalog.clearCurrentFileContext();
341
const durationMs = performance.now() - beforeImport;
0 commit comments