@mastra/temporal 0.4.18-alpha.2 → 0.4.18-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/worker.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as toWorkflowType } from "./utils-B_iPTfDi.js";
1
+ import { t as toWorkflowType } from "./utils-R6cB86BM.js";
2
2
  import { builtinModules } from "module";
3
3
  import { readFileSync } from "fs";
4
4
  import { writeFile } from "fs/promises";
@@ -8,7 +8,7 @@ import { generate } from "@babel/generator";
8
8
  import { parse } from "@babel/parser";
9
9
  import * as t from "@babel/types";
10
10
  import { rollup } from "rollup";
11
- //#region src/transforms/shared.ts
11
+ // src/transforms/shared.ts
12
12
  const parserPlugins = [
13
13
  "typescript",
14
14
  "jsx",
@@ -265,8 +265,7 @@ function pruneUnusedTopLevelBindings(statements) {
265
265
  });
266
266
  return prunedStatements;
267
267
  }
268
- //#endregion
269
- //#region src/transforms/activities.ts
268
+ // src/transforms/activities.ts
270
269
  function normalizeImportPath(importPath, extension) {
271
270
  const normalizedPath = importPath.split(path.sep).join("/");
272
271
  const pathWithExtension = extension === ".mjs" || extension === ".cjs" ? normalizedPath : normalizedPath.replace(/\.[cm]?[jt]sx?$/, "");
@@ -649,8 +648,7 @@ async function buildTemporalActivitiesModule(entryFile, outputDirectory, outputF
649
648
  await bundle.close();
650
649
  }
651
650
  }
652
- //#endregion
653
- //#region src/transforms/workflows.ts
651
+ // src/transforms/workflows.ts
654
652
  /**
655
653
  * Temporal workflow types must be static so the loader can deterministically map
656
654
  * a source workflow to the runtime export name used by the worker.
@@ -1101,8 +1099,7 @@ async function buildTemporalWorkflowModule(entryFile, outputDirectory, outputFil
1101
1099
  await bundle.close();
1102
1100
  }
1103
1101
  }
1104
- //#endregion
1105
- //#region src/plugin.ts
1102
+ // src/plugin.ts
1106
1103
  const CACHE_PATH = "node_modules/.mastra";
1107
1104
  const WORKFLOW_FILE_NAME = "workflow.mjs";
1108
1105
  const ACTIVITIES_FILE_NAME = "activities.mjs";
@@ -1128,7 +1125,7 @@ var MastraPlugin = class {
1128
1125
  this.projectRoot = projectRoot;
1129
1126
  }
1130
1127
  async #bundleMastra(entryFile, projectRoot, outputDirectory) {
1131
- const { BuildBundler } = await import("./mastra-deployer-rZLKb1Em.js");
1128
+ const { BuildBundler } = await import("./mastra-deployer-BtoNM1bq.js");
1132
1129
  const normalizedEntryFile = entryFile.startsWith("file:/") ? fileURLToPath(entryFile) : entryFile;
1133
1130
  const mastraBundler = new BuildBundler();
1134
1131
  await mastraBundler.prepare(outputDirectory);
@@ -1205,7 +1202,6 @@ var MastraPlugin = class {
1205
1202
  return augmentedOptions;
1206
1203
  }
1207
1204
  };
1208
- //#endregion
1209
1205
  export { MastraPlugin };
1210
1206
 
1211
1207
  //# sourceMappingURL=worker.js.map