@mastra/deployer 0.11.0-alpha.0 → 0.11.0-alpha.1

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.
@@ -112,7 +112,7 @@ export declare abstract class Bundler extends MastraBundler {
112
112
  }): Promise<void>;
113
113
  protected getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
114
114
  getToolsInputOptions(toolsPaths: string[]): Promise<Record<string, string>>;
115
- protected _bundle(serverFile: string, mastraEntryFile: string, outputDirectory: string, toolsPaths?: string[], bundleLocation?: string, installDependencies?: boolean): Promise<void>;
115
+ protected _bundle(serverFile: string, mastraEntryFile: string, outputDirectory: string, toolsPaths?: string[], bundleLocation?: string): Promise<void>;
116
116
  lint(_entryFile: string, _outputDirectory: string, toolsPaths: string[]): Promise<void>;
117
117
  }
118
118
 
@@ -112,7 +112,7 @@ export declare abstract class Bundler extends MastraBundler {
112
112
  }): Promise<void>;
113
113
  protected getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
114
114
  getToolsInputOptions(toolsPaths: string[]): Promise<Record<string, string>>;
115
- protected _bundle(serverFile: string, mastraEntryFile: string, outputDirectory: string, toolsPaths?: string[], bundleLocation?: string, installDependencies?: boolean): Promise<void>;
115
+ protected _bundle(serverFile: string, mastraEntryFile: string, outputDirectory: string, toolsPaths?: string[], bundleLocation?: string): Promise<void>;
116
116
  lint(_entryFile: string, _outputDirectory: string, toolsPaths: string[]): Promise<void>;
117
117
  }
118
118
 
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkUFVGATV6_cjs = require('../chunk-UFVGATV6.cjs');
3
+ var chunkYFMAWUII_cjs = require('../chunk-YFMAWUII.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkUFVGATV6_cjs.Bundler; }
9
+ get: function () { return chunkYFMAWUII_cjs.Bundler; }
10
10
  });
@@ -1 +1 @@
1
- export { Bundler } from '../chunk-D57U647E.js';
1
+ export { Bundler } from '../chunk-HJGC75ZR.js';
@@ -295,7 +295,7 @@ var Bundler = class extends MastraBundler {
295
295
  }
296
296
  return inputs;
297
297
  }
298
- async _bundle(serverFile, mastraEntryFile, outputDirectory, toolsPaths = [], bundleLocation = join(outputDirectory, this.outputDir), installDependencies = true) {
298
+ async _bundle(serverFile, mastraEntryFile, outputDirectory, toolsPaths = [], bundleLocation = join(outputDirectory, this.outputDir)) {
299
299
  this.logger.info("Start bundling Mastra");
300
300
  let analyzedBundleInfo;
301
301
  try {
@@ -462,11 +462,9 @@ export const tools = [${toolsExports.join(", ")}]`
462
462
  this.logger.info("Copying .npmrc file");
463
463
  await this.copyDOTNPMRC({ outputDirectory });
464
464
  this.logger.info("Done copying .npmrc file");
465
- if (installDependencies) {
466
- this.logger.info("Installing dependencies");
467
- await this.installDependencies(outputDirectory);
468
- this.logger.info("Done installing dependencies");
469
- }
465
+ this.logger.info("Installing dependencies");
466
+ await this.installDependencies(outputDirectory);
467
+ this.logger.info("Done installing dependencies");
470
468
  } catch (error) {
471
469
  const message = error instanceof Error ? error.message : String(error);
472
470
  throw new MastraError(
@@ -169,7 +169,7 @@ var Bundler = class extends bundler.MastraBundler {
169
169
  }
170
170
  async writeInstrumentationFile(outputDirectory, customInstrumentationFile) {
171
171
  const instrumentationFile = path.join(outputDirectory, "instrumentation.mjs");
172
- 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-UFVGATV6.cjs', document.baseURI).href))));
172
+ 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-YFMAWUII.cjs', document.baseURI).href))));
173
173
  if (customInstrumentationFile) {
174
174
  await fsExtra.copy(customInstrumentationFile, instrumentationFile);
175
175
  } else {
@@ -307,7 +307,7 @@ var Bundler = class extends bundler.MastraBundler {
307
307
  }
308
308
  return inputs;
309
309
  }
310
- async _bundle(serverFile, mastraEntryFile, outputDirectory, toolsPaths = [], bundleLocation = path.join(outputDirectory, this.outputDir), installDependencies = true) {
310
+ async _bundle(serverFile, mastraEntryFile, outputDirectory, toolsPaths = [], bundleLocation = path.join(outputDirectory, this.outputDir)) {
311
311
  this.logger.info("Start bundling Mastra");
312
312
  let analyzedBundleInfo;
313
313
  try {
@@ -474,11 +474,9 @@ export const tools = [${toolsExports.join(", ")}]`
474
474
  this.logger.info("Copying .npmrc file");
475
475
  await this.copyDOTNPMRC({ outputDirectory });
476
476
  this.logger.info("Done copying .npmrc file");
477
- if (installDependencies) {
478
- this.logger.info("Installing dependencies");
479
- await this.installDependencies(outputDirectory);
480
- this.logger.info("Done installing dependencies");
481
- }
477
+ this.logger.info("Installing dependencies");
478
+ await this.installDependencies(outputDirectory);
479
+ this.logger.info("Done installing dependencies");
482
480
  } catch (error$1) {
483
481
  const message = error$1 instanceof Error ? error$1.message : String(error$1);
484
482
  throw new error.MastraError(
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUFVGATV6_cjs = require('./chunk-UFVGATV6.cjs');
3
+ var chunkYFMAWUII_cjs = require('./chunk-YFMAWUII.cjs');
4
4
  var chunkXKH6F4NE_cjs = require('./chunk-XKH6F4NE.cjs');
5
5
  var chunkKCP5ITLV_cjs = require('./chunk-KCP5ITLV.cjs');
6
6
  var babel = require('@babel/core');
@@ -33,7 +33,7 @@ var esbuild__default = /*#__PURE__*/_interopDefault(esbuild);
33
33
  var commonjs__default = /*#__PURE__*/_interopDefault(commonjs);
34
34
 
35
35
  // src/deploy/base.ts
36
- var Deployer = class extends chunkUFVGATV6_cjs.Bundler {
36
+ var Deployer = class extends chunkYFMAWUII_cjs.Bundler {
37
37
  deps = new chunkKCP5ITLV_cjs.DepsService();
38
38
  constructor(args) {
39
39
  super(args.name, "DEPLOYER");
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Bundler } from './chunk-D57U647E.js';
1
+ import { Bundler } from './chunk-HJGC75ZR.js';
2
2
  import { recursiveRemoveNonReferencedNodes } from './chunk-UYQZMNZL.js';
3
3
  import { DepsService, FileService } from './chunk-GPD54HBC.js';
4
4
  export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-GPD54HBC.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.11.0-alpha.0",
3
+ "version": "0.11.0-alpha.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -108,7 +108,7 @@
108
108
  "rollup-plugin-node-externals": "^8.0.1",
109
109
  "typescript-paths": "^1.5.1",
110
110
  "zod": "^3.25.67",
111
- "@mastra/server": "^0.11.0-alpha.0"
111
+ "@mastra/server": "^0.11.0-alpha.1"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@hono/node-server": "^1.14.4",
@@ -128,7 +128,7 @@
128
128
  "typescript": "^5.8.3",
129
129
  "vitest": "^3.2.4",
130
130
  "@internal/lint": "0.0.20",
131
- "@mastra/core": "0.11.0-alpha.0",
131
+ "@mastra/core": "0.11.0-alpha.1",
132
132
  "@mastra/mcp": "^0.10.6"
133
133
  },
134
134
  "peerDependencies": {