@mastra/deployer 0.10.15-alpha.0 → 0.10.15

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.
@@ -100,7 +100,7 @@ export declare abstract class Bundler extends MastraBundler {
100
100
  }): Promise<void>;
101
101
  protected getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
102
102
  getToolsInputOptions(toolsPaths: string[]): Promise<Record<string, string>>;
103
- protected _bundle(serverFile: string, mastraEntryFile: string, outputDirectory: string, toolsPaths?: string[], bundleLocation?: string): Promise<void>;
103
+ protected _bundle(serverFile: string, mastraEntryFile: string, outputDirectory: string, toolsPaths?: string[], bundleLocation?: string, installDependencies?: boolean): Promise<void>;
104
104
  lint(_entryFile: string, _outputDirectory: string, toolsPaths: string[]): Promise<void>;
105
105
  }
106
106
 
@@ -100,7 +100,7 @@ export declare abstract class Bundler extends MastraBundler {
100
100
  }): Promise<void>;
101
101
  protected getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
102
102
  getToolsInputOptions(toolsPaths: string[]): Promise<Record<string, string>>;
103
- protected _bundle(serverFile: string, mastraEntryFile: string, outputDirectory: string, toolsPaths?: string[], bundleLocation?: string): Promise<void>;
103
+ protected _bundle(serverFile: string, mastraEntryFile: string, outputDirectory: string, toolsPaths?: string[], bundleLocation?: string, installDependencies?: boolean): Promise<void>;
104
104
  lint(_entryFile: string, _outputDirectory: string, toolsPaths: string[]): Promise<void>;
105
105
  }
106
106
 
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkYFMAWUII_cjs = require('../chunk-YFMAWUII.cjs');
3
+ var chunkUFVGATV6_cjs = require('../chunk-UFVGATV6.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkYFMAWUII_cjs.Bundler; }
9
+ get: function () { return chunkUFVGATV6_cjs.Bundler; }
10
10
  });
@@ -1 +1 @@
1
- export { Bundler } from '../chunk-HJGC75ZR.js';
1
+ export { Bundler } from '../chunk-D57U647E.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)) {
298
+ async _bundle(serverFile, mastraEntryFile, outputDirectory, toolsPaths = [], bundleLocation = join(outputDirectory, this.outputDir), installDependencies = true) {
299
299
  this.logger.info("Start bundling Mastra");
300
300
  let analyzedBundleInfo;
301
301
  try {
@@ -462,9 +462,11 @@ 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
- this.logger.info("Installing dependencies");
466
- await this.installDependencies(outputDirectory);
467
- this.logger.info("Done installing dependencies");
465
+ if (installDependencies) {
466
+ this.logger.info("Installing dependencies");
467
+ await this.installDependencies(outputDirectory);
468
+ this.logger.info("Done installing dependencies");
469
+ }
468
470
  } catch (error) {
469
471
  const message = error instanceof Error ? error.message : String(error);
470
472
  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-YFMAWUII.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-UFVGATV6.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)) {
310
+ async _bundle(serverFile, mastraEntryFile, outputDirectory, toolsPaths = [], bundleLocation = path.join(outputDirectory, this.outputDir), installDependencies = true) {
311
311
  this.logger.info("Start bundling Mastra");
312
312
  let analyzedBundleInfo;
313
313
  try {
@@ -474,9 +474,11 @@ 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
- this.logger.info("Installing dependencies");
478
- await this.installDependencies(outputDirectory);
479
- this.logger.info("Done installing dependencies");
477
+ if (installDependencies) {
478
+ this.logger.info("Installing dependencies");
479
+ await this.installDependencies(outputDirectory);
480
+ this.logger.info("Done installing dependencies");
481
+ }
480
482
  } catch (error$1) {
481
483
  const message = error$1 instanceof Error ? error$1.message : String(error$1);
482
484
  throw new error.MastraError(
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkYFMAWUII_cjs = require('./chunk-YFMAWUII.cjs');
3
+ var chunkUFVGATV6_cjs = require('./chunk-UFVGATV6.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 chunkYFMAWUII_cjs.Bundler {
36
+ var Deployer = class extends chunkUFVGATV6_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-HJGC75ZR.js';
1
+ import { Bundler } from './chunk-D57U647E.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.10.15-alpha.0",
3
+ "version": "0.10.15",
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.10.15-alpha.0"
111
+ "@mastra/server": "^0.10.15"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@hono/node-server": "^1.14.4",
@@ -127,9 +127,9 @@
127
127
  "type-fest": "^4.41.0",
128
128
  "typescript": "^5.8.3",
129
129
  "vitest": "^3.2.4",
130
- "@internal/lint": "0.0.19",
131
- "@mastra/mcp": "^0.10.6",
132
- "@mastra/core": "0.10.15-alpha.0"
130
+ "@mastra/core": "0.10.15",
131
+ "@internal/lint": "0.0.20",
132
+ "@mastra/mcp": "^0.10.6"
133
133
  },
134
134
  "peerDependencies": {
135
135
  "@mastra/core": ">=0.10.9-0 <0.11.0-0"