@mastra/deployer 0.2.7-alpha.0 → 0.2.8-alpha.0

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.
@@ -2,10 +2,10 @@
2
2
 
3
3
  var chunkI3UVE6EH_cjs = require('../chunk-I3UVE6EH.cjs');
4
4
  var chunk2ZPQX6BX_cjs = require('../chunk-2ZPQX6BX.cjs');
5
- var chunkNCROGJGB_cjs = require('../chunk-NCROGJGB.cjs');
6
- var chunkVFZVVUQE_cjs = require('../chunk-VFZVVUQE.cjs');
7
5
  var chunkP5SATU7G_cjs = require('../chunk-P5SATU7G.cjs');
8
6
  var chunkAE4CVAPK_cjs = require('../chunk-AE4CVAPK.cjs');
7
+ var chunkNCROGJGB_cjs = require('../chunk-NCROGJGB.cjs');
8
+ var chunkVFZVVUQE_cjs = require('../chunk-VFZVVUQE.cjs');
9
9
 
10
10
 
11
11
 
@@ -25,14 +25,6 @@ Object.defineProperty(exports, "writeTelemetryConfig", {
25
25
  enumerable: true,
26
26
  get: function () { return chunk2ZPQX6BX_cjs.writeTelemetryConfig; }
27
27
  });
28
- Object.defineProperty(exports, "FileService", {
29
- enumerable: true,
30
- get: function () { return chunkNCROGJGB_cjs.FileService; }
31
- });
32
- Object.defineProperty(exports, "Deps", {
33
- enumerable: true,
34
- get: function () { return chunkVFZVVUQE_cjs.Deps; }
35
- });
36
28
  Object.defineProperty(exports, "analyzeBundle", {
37
29
  enumerable: true,
38
30
  get: function () { return chunkP5SATU7G_cjs.analyzeBundle; }
@@ -45,3 +37,11 @@ Object.defineProperty(exports, "getBundlerInputOptions", {
45
37
  enumerable: true,
46
38
  get: function () { return chunkAE4CVAPK_cjs.getInputOptions; }
47
39
  });
40
+ Object.defineProperty(exports, "FileService", {
41
+ enumerable: true,
42
+ get: function () { return chunkNCROGJGB_cjs.FileService; }
43
+ });
44
+ Object.defineProperty(exports, "Deps", {
45
+ enumerable: true,
46
+ get: function () { return chunkVFZVVUQE_cjs.Deps; }
47
+ });
@@ -1,6 +1,6 @@
1
1
  export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-WB3T6NKI.js';
2
2
  export { writeTelemetryConfig } from '../chunk-4AYFLP6G.js';
3
- export { FileService } from '../chunk-DYQ225MJ.js';
4
- export { Deps } from '../chunk-5UBGPRKT.js';
5
3
  export { analyzeBundle } from '../chunk-BDTZS3JM.js';
6
4
  export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-IKPL4RGG.js';
5
+ export { FileService } from '../chunk-DYQ225MJ.js';
6
+ export { Deps } from '../chunk-5UBGPRKT.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkO5NUMKUF_cjs = require('../chunk-O5NUMKUF.cjs');
3
+ var chunkE4O4GFML_cjs = require('../chunk-E4O4GFML.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkO5NUMKUF_cjs.Bundler; }
9
+ get: function () { return chunkE4O4GFML_cjs.Bundler; }
10
10
  });
@@ -1 +1 @@
1
- export { Bundler } from '../chunk-VGDSNRYG.js';
1
+ export { Bundler } from '../chunk-BQ2U2MF3.js';
@@ -1,7 +1,7 @@
1
1
  import { writeTelemetryConfig } from './chunk-4AYFLP6G.js';
2
- import { DepsService } from './chunk-5UBGPRKT.js';
3
2
  import { analyzeBundle } from './chunk-BDTZS3JM.js';
4
3
  import { createBundler, getInputOptions } from './chunk-IKPL4RGG.js';
4
+ import { DepsService } from './chunk-5UBGPRKT.js';
5
5
  import { existsSync } from 'node:fs';
6
6
  import { writeFile, stat } from 'node:fs/promises';
7
7
  import { join, dirname } from 'node:path';
@@ -124,7 +124,12 @@ var Bundler = class extends MastraBundler {
124
124
  await this.writeInstrumentationFile(join(outputDirectory, this.outputDir));
125
125
  this.logger.info("Bundling Mastra application");
126
126
  const inputOptions = await this.getBundlerOptions(serverFile, mastraEntryFile, analyzedBundleInfo);
127
- const bundler = await this.createBundler(inputOptions, { dir: bundleLocation });
127
+ const bundler = await this.createBundler(inputOptions, {
128
+ dir: bundleLocation,
129
+ manualChunks: {
130
+ mastra: ["#mastra"]
131
+ }
132
+ });
128
133
  await bundler.write();
129
134
  this.logger.info("Bundling Mastra done");
130
135
  this.logger.info("Copying public files");
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk2ZPQX6BX_cjs = require('./chunk-2ZPQX6BX.cjs');
4
- var chunkVFZVVUQE_cjs = require('./chunk-VFZVVUQE.cjs');
5
4
  var chunkP5SATU7G_cjs = require('./chunk-P5SATU7G.cjs');
6
5
  var chunkAE4CVAPK_cjs = require('./chunk-AE4CVAPK.cjs');
6
+ var chunkVFZVVUQE_cjs = require('./chunk-VFZVVUQE.cjs');
7
7
  var fs = require('fs');
8
8
  var promises = require('fs/promises');
9
9
  var path = require('path');
@@ -32,7 +32,7 @@ var Bundler = class extends bundler.MastraBundler {
32
32
  }
33
33
  async writeInstrumentationFile(outputDirectory) {
34
34
  const instrumentationFile = path.join(outputDirectory, "instrumentation.mjs");
35
- const __dirname = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-O5NUMKUF.cjs', document.baseURI).href))));
35
+ const __dirname = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-E4O4GFML.cjs', document.baseURI).href))));
36
36
  await esm.copy(path.join(__dirname, "templates", "instrumentation-template.js"), instrumentationFile);
37
37
  }
38
38
  async writePackageJson(outputDirectory, dependencies) {
@@ -132,7 +132,12 @@ var Bundler = class extends bundler.MastraBundler {
132
132
  await this.writeInstrumentationFile(path.join(outputDirectory, this.outputDir));
133
133
  this.logger.info("Bundling Mastra application");
134
134
  const inputOptions = await this.getBundlerOptions(serverFile, mastraEntryFile, analyzedBundleInfo);
135
- const bundler = await this.createBundler(inputOptions, { dir: bundleLocation });
135
+ const bundler = await this.createBundler(inputOptions, {
136
+ dir: bundleLocation,
137
+ manualChunks: {
138
+ mastra: ["#mastra"]
139
+ }
140
+ });
136
141
  await bundler.write();
137
142
  this.logger.info("Bundling Mastra done");
138
143
  this.logger.info("Copying public files");
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkO5NUMKUF_cjs = require('./chunk-O5NUMKUF.cjs');
3
+ var chunkE4O4GFML_cjs = require('./chunk-E4O4GFML.cjs');
4
4
  var chunk2ZPQX6BX_cjs = require('./chunk-2ZPQX6BX.cjs');
5
5
  var chunkNCROGJGB_cjs = require('./chunk-NCROGJGB.cjs');
6
6
  var chunkVFZVVUQE_cjs = require('./chunk-VFZVVUQE.cjs');
@@ -34,7 +34,7 @@ var esbuild__default = /*#__PURE__*/_interopDefault(esbuild);
34
34
  var commonjs__default = /*#__PURE__*/_interopDefault(commonjs);
35
35
 
36
36
  // src/deploy/base.ts
37
- var Deployer = class extends chunkO5NUMKUF_cjs.Bundler {
37
+ var Deployer = class extends chunkE4O4GFML_cjs.Bundler {
38
38
  deps = new chunkVFZVVUQE_cjs.DepsService();
39
39
  constructor(args) {
40
40
  super(args.name, "DEPLOYER");
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Bundler } from './chunk-VGDSNRYG.js';
1
+ import { Bundler } from './chunk-BQ2U2MF3.js';
2
2
  import { recursiveRemoveNonReferencedNodes } from './chunk-4AYFLP6G.js';
3
3
  import { FileService } from './chunk-DYQ225MJ.js';
4
4
  export { FileService } from './chunk-DYQ225MJ.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.2.7-alpha.0",
3
+ "version": "0.2.8-alpha.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -105,8 +105,8 @@
105
105
  "rollup-plugin-node-externals": "^8.0.0",
106
106
  "typescript-paths": "^1.5.1",
107
107
  "zod": "^3.24.2",
108
- "@mastra/core": "^0.8.1-alpha.0",
109
- "@mastra/server": "^1.0.1-alpha.0"
108
+ "@mastra/server": "^1.0.2-alpha.0",
109
+ "@mastra/core": "^0.8.2-alpha.0"
110
110
  },
111
111
  "devDependencies": {
112
112
  "@hono/node-server": "^1.13.8",