@mastra/deployer 0.2.0 → 0.2.1-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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYJMYF7RI_cjs = require('../chunk-YJMYF7RI.cjs');
4
- var chunkGDZ3GXKY_cjs = require('../chunk-GDZ3GXKY.cjs');
4
+ var chunkVPP5727D_cjs = require('../chunk-VPP5727D.cjs');
5
5
  var chunkYLIG5BNH_cjs = require('../chunk-YLIG5BNH.cjs');
6
6
  var chunkQFYK5AS3_cjs = require('../chunk-QFYK5AS3.cjs');
7
7
 
@@ -29,11 +29,11 @@ Object.defineProperty(exports, "getWatcherInputOptions", {
29
29
  });
30
30
  Object.defineProperty(exports, "Deps", {
31
31
  enumerable: true,
32
- get: function () { return chunkGDZ3GXKY_cjs.Deps; }
32
+ get: function () { return chunkVPP5727D_cjs.Deps; }
33
33
  });
34
34
  Object.defineProperty(exports, "writeTelemetryConfig", {
35
35
  enumerable: true,
36
- get: function () { return chunkGDZ3GXKY_cjs.writeTelemetryConfig; }
36
+ get: function () { return chunkVPP5727D_cjs.writeTelemetryConfig; }
37
37
  });
38
38
  Object.defineProperty(exports, "analyzeBundle", {
39
39
  enumerable: true,
@@ -1,4 +1,4 @@
1
1
  export { FileService, createWatcher, getBundler, getWatcher, getInputOptions as getWatcherInputOptions } from '../chunk-72GFPLLU.js';
2
- export { Deps, writeTelemetryConfig } from '../chunk-VPQMSJB2.js';
2
+ export { Deps, writeTelemetryConfig } from '../chunk-SL5KZNFT.js';
3
3
  export { analyzeBundle } from '../chunk-TQSSPVHI.js';
4
4
  export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-AC67BJSW.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkKKZQZXS5_cjs = require('../chunk-KKZQZXS5.cjs');
3
+ var chunkJ2F3DJTF_cjs = require('../chunk-J2F3DJTF.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkKKZQZXS5_cjs.Bundler; }
9
+ get: function () { return chunkJ2F3DJTF_cjs.Bundler; }
10
10
  });
@@ -1 +1 @@
1
- export { Bundler } from '../chunk-OF7TVLEI.js';
1
+ export { Bundler } from '../chunk-VPY2RQUP.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkGDZ3GXKY_cjs = require('./chunk-GDZ3GXKY.cjs');
3
+ var chunkVPP5727D_cjs = require('./chunk-VPP5727D.cjs');
4
4
  var chunkYLIG5BNH_cjs = require('./chunk-YLIG5BNH.cjs');
5
5
  var chunkQFYK5AS3_cjs = require('./chunk-QFYK5AS3.cjs');
6
6
  var fs = require('fs');
@@ -31,7 +31,7 @@ var Bundler = class extends bundler.MastraBundler {
31
31
  }
32
32
  async writeInstrumentationFile(outputDirectory) {
33
33
  const instrumentationFile = path.join(outputDirectory, "instrumentation.mjs");
34
- 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-KKZQZXS5.cjs', document.baseURI).href))));
34
+ 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-J2F3DJTF.cjs', document.baseURI).href))));
35
35
  await fsExtra$1.copy(path.join(__dirname, "templates", "instrumentation-template.js"), instrumentationFile);
36
36
  }
37
37
  async writePackageJson(outputDirectory, dependencies) {
@@ -76,7 +76,7 @@ var Bundler = class extends bundler.MastraBundler {
76
76
  return await chunkYLIG5BNH_cjs.analyzeBundle(entry, mastraFile, path.join(outputDirectory, this.analyzeOutputDir), "node", this.logger);
77
77
  }
78
78
  async installDependencies(outputDirectory, rootDir = process.cwd()) {
79
- const deps = new chunkGDZ3GXKY_cjs.Deps(rootDir);
79
+ const deps = new chunkVPP5727D_cjs.Deps(rootDir);
80
80
  deps.__setLogger(this.logger);
81
81
  await deps.install({ dir: path.join(outputDirectory, this.outputDir) });
82
82
  }
@@ -90,7 +90,7 @@ var Bundler = class extends bundler.MastraBundler {
90
90
  "node",
91
91
  this.logger
92
92
  );
93
- await chunkGDZ3GXKY_cjs.writeTelemetryConfig(mastraEntryFile, path.join(outputDirectory, this.outputDir));
93
+ await chunkVPP5727D_cjs.writeTelemetryConfig(mastraEntryFile, path.join(outputDirectory, this.outputDir));
94
94
  const dependenciesToInstall = Array.from(analyzedBundleInfo.externalDependencies).reduce((acc, dep) => {
95
95
  acc.set(dep, "latest");
96
96
  return acc;
@@ -199,7 +199,7 @@ var Deps = class extends base.MastraBase {
199
199
  }
200
200
  }
201
201
  async getPackageVersion() {
202
- const __filename = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-GDZ3GXKY.cjs', document.baseURI).href)));
202
+ const __filename = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-VPP5727D.cjs', document.baseURI).href)));
203
203
  const __dirname = path.dirname(__filename);
204
204
  const pkgJsonPath = path__default.default.join(__dirname, "..", "..", "package.json");
205
205
  const content = await fsExtra__default.default.readJSON(pkgJsonPath);
@@ -268,18 +268,18 @@ async function writeTelemetryConfig(entryFile, outputDir) {
268
268
  },
269
269
  treeshake: "smallest",
270
270
  plugins: [
271
- commonjs__default.default({
272
- extensions: [".js", ".ts"],
273
- strictRequires: "strict",
274
- transformMixedEsModules: true,
275
- ignoreTryCatch: false
276
- }),
277
271
  // transpile typescript to something we understand
278
272
  esbuild__default.default({
279
273
  target: "node20",
280
274
  platform: "node",
281
275
  minify: false
282
276
  }),
277
+ commonjs__default.default({
278
+ extensions: [".js", ".ts"],
279
+ strictRequires: "strict",
280
+ transformMixedEsModules: true,
281
+ ignoreTryCatch: false
282
+ }),
283
283
  {
284
284
  name: "get-telemetry-config",
285
285
  transform(code, id) {
@@ -1,4 +1,4 @@
1
- import { Deps, writeTelemetryConfig } from './chunk-VPQMSJB2.js';
1
+ import { Deps, writeTelemetryConfig } from './chunk-SL5KZNFT.js';
2
2
  import { analyzeBundle } from './chunk-TQSSPVHI.js';
3
3
  import { createBundler, getInputOptions } from './chunk-AC67BJSW.js';
4
4
  import { existsSync } from 'node:fs';
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYJMYF7RI_cjs = require('./chunk-YJMYF7RI.cjs');
4
- var chunkKKZQZXS5_cjs = require('./chunk-KKZQZXS5.cjs');
5
- var chunkGDZ3GXKY_cjs = require('./chunk-GDZ3GXKY.cjs');
4
+ var chunkJ2F3DJTF_cjs = require('./chunk-J2F3DJTF.cjs');
5
+ var chunkVPP5727D_cjs = require('./chunk-VPP5727D.cjs');
6
6
  var babel = require('@babel/core');
7
7
  var rollup = require('rollup');
8
8
  var esbuild = require('rollup-plugin-esbuild');
@@ -33,8 +33,8 @@ 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 chunkKKZQZXS5_cjs.Bundler {
37
- deps = new chunkGDZ3GXKY_cjs.Deps();
36
+ var Deployer = class extends chunkJ2F3DJTF_cjs.Bundler {
37
+ deps = new chunkVPP5727D_cjs.Deps();
38
38
  constructor(args) {
39
39
  super(args.name, "DEPLOYER");
40
40
  this.deps.__setLogger(this.logger);
@@ -156,15 +156,15 @@ Object.defineProperty(exports, "FileService", {
156
156
  });
157
157
  Object.defineProperty(exports, "Deps", {
158
158
  enumerable: true,
159
- get: function () { return chunkGDZ3GXKY_cjs.Deps; }
159
+ get: function () { return chunkVPP5727D_cjs.Deps; }
160
160
  });
161
161
  Object.defineProperty(exports, "createChildProcessLogger", {
162
162
  enumerable: true,
163
- get: function () { return chunkGDZ3GXKY_cjs.createChildProcessLogger; }
163
+ get: function () { return chunkVPP5727D_cjs.createChildProcessLogger; }
164
164
  });
165
165
  Object.defineProperty(exports, "createPinoStream", {
166
166
  enumerable: true,
167
- get: function () { return chunkGDZ3GXKY_cjs.createPinoStream; }
167
+ get: function () { return chunkVPP5727D_cjs.createPinoStream; }
168
168
  });
169
169
  exports.Deployer = Deployer;
170
170
  exports.getDeployer = getDeployer;
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { FileService } from './chunk-72GFPLLU.js';
2
2
  export { FileService } from './chunk-72GFPLLU.js';
3
- import { Bundler } from './chunk-OF7TVLEI.js';
4
- import { Deps } from './chunk-VPQMSJB2.js';
5
- export { Deps, createChildProcessLogger, createPinoStream } from './chunk-VPQMSJB2.js';
3
+ import { Bundler } from './chunk-VPY2RQUP.js';
4
+ import { Deps } from './chunk-SL5KZNFT.js';
5
+ export { Deps, createChildProcessLogger, createPinoStream } from './chunk-SL5KZNFT.js';
6
6
  import * as babel from '@babel/core';
7
7
  import babel__default from '@babel/core';
8
8
  import { rollup } from 'rollup';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.2.0",
3
+ "version": "0.2.1-alpha.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -76,14 +76,14 @@
76
76
  "builtins": "^5.1.0",
77
77
  "detect-libc": "^2.0.3",
78
78
  "dotenv": "^16.4.7",
79
- "esbuild": "^0.24.2",
79
+ "esbuild": "^0.25.1",
80
80
  "fs-extra": "^11.3.0",
81
81
  "hono": "^4.7.4",
82
82
  "rollup": "^4.35.0",
83
83
  "rollup-plugin-esbuild": "^6.2.1",
84
84
  "rollup-plugin-node-externals": "^8.0.0",
85
85
  "zod": "^3.24.2",
86
- "@mastra/core": "^0.6.0"
86
+ "@mastra/core": "^0.6.1-alpha.1"
87
87
  },
88
88
  "devDependencies": {
89
89
  "@hono/node-server": "^1.13.8",
@@ -238,18 +238,18 @@ async function writeTelemetryConfig(entryFile, outputDir) {
238
238
  },
239
239
  treeshake: "smallest",
240
240
  plugins: [
241
- commonjs({
242
- extensions: [".js", ".ts"],
243
- strictRequires: "strict",
244
- transformMixedEsModules: true,
245
- ignoreTryCatch: false
246
- }),
247
241
  // transpile typescript to something we understand
248
242
  esbuild({
249
243
  target: "node20",
250
244
  platform: "node",
251
245
  minify: false
252
246
  }),
247
+ commonjs({
248
+ extensions: [".js", ".ts"],
249
+ strictRequires: "strict",
250
+ transformMixedEsModules: true,
251
+ ignoreTryCatch: false
252
+ }),
253
253
  {
254
254
  name: "get-telemetry-config",
255
255
  transform(code, id) {