@mastra/deployer 0.2.7 → 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.
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
9
|
+
get: function () { return chunkE4O4GFML_cjs.Bundler; }
|
|
10
10
|
});
|
package/dist/bundler/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Bundler } from '../chunk-
|
|
1
|
+
export { Bundler } from '../chunk-BQ2U2MF3.js';
|
|
@@ -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, {
|
|
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");
|
|
@@ -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-
|
|
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, {
|
|
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
|
|
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
|
|
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-
|
|
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.
|
|
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/
|
|
109
|
-
"@mastra/
|
|
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",
|