@mastra/deployer 0.2.10-alpha.1 → 0.2.10-alpha.2
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/build/analyze.cjs +2 -2
- package/dist/build/analyze.js +1 -1
- package/dist/build/index.cjs +6 -6
- package/dist/build/index.js +2 -2
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-EUFD4MGO.cjs → chunk-BDAX7X52.cjs} +4 -4
- package/dist/{chunk-WB3T6NKI.js → chunk-C3ZISWS3.js} +1 -1
- package/dist/{chunk-P5SATU7G.cjs → chunk-LA6Y6GAB.cjs} +3 -1
- package/dist/{chunk-BDTZS3JM.js → chunk-USZDOFES.js} +3 -1
- package/dist/{chunk-KHNXH7BY.js → chunk-UUEHIAGW.js} +1 -1
- package/dist/{chunk-I3UVE6EH.cjs → chunk-YSFP3CY7.cjs} +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/build/analyze.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLA6Y6GAB_cjs = require('../chunk-LA6Y6GAB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "analyzeBundle", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkLA6Y6GAB_cjs.analyzeBundle; }
|
|
10
10
|
});
|
package/dist/build/analyze.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { analyzeBundle } from '../chunk-
|
|
1
|
+
export { analyzeBundle } from '../chunk-USZDOFES.js';
|
package/dist/build/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYSFP3CY7_cjs = require('../chunk-YSFP3CY7.cjs');
|
|
4
4
|
var chunk2ZPQX6BX_cjs = require('../chunk-2ZPQX6BX.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkLA6Y6GAB_cjs = require('../chunk-LA6Y6GAB.cjs');
|
|
6
6
|
var chunkAE4CVAPK_cjs = require('../chunk-AE4CVAPK.cjs');
|
|
7
7
|
var chunkNCROGJGB_cjs = require('../chunk-NCROGJGB.cjs');
|
|
8
8
|
var chunkTHU6NH7X_cjs = require('../chunk-THU6NH7X.cjs');
|
|
@@ -11,15 +11,15 @@ var chunkTHU6NH7X_cjs = require('../chunk-THU6NH7X.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "createWatcher", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkYSFP3CY7_cjs.createWatcher; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "getServerOptions", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkYSFP3CY7_cjs.getServerOptions; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "getWatcherInputOptions", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkYSFP3CY7_cjs.getInputOptions; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "writeTelemetryConfig", {
|
|
25
25
|
enumerable: true,
|
|
@@ -27,7 +27,7 @@ Object.defineProperty(exports, "writeTelemetryConfig", {
|
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "analyzeBundle", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkLA6Y6GAB_cjs.analyzeBundle; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "createBundler", {
|
|
33
33
|
enumerable: true,
|
package/dist/build/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-
|
|
1
|
+
export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-C3ZISWS3.js';
|
|
2
2
|
export { writeTelemetryConfig } from '../chunk-4AYFLP6G.js';
|
|
3
|
-
export { analyzeBundle } from '../chunk-
|
|
3
|
+
export { analyzeBundle } from '../chunk-USZDOFES.js';
|
|
4
4
|
export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-IKPL4RGG.js';
|
|
5
5
|
export { FileService } from '../chunk-DYQ225MJ.js';
|
|
6
6
|
export { Deps } from '../chunk-P7ZN2KUE.js';
|
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBDAX7X52_cjs = require('../chunk-BDAX7X52.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 chunkBDAX7X52_cjs.Bundler; }
|
|
10
10
|
});
|
package/dist/bundler/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Bundler } from '../chunk-
|
|
1
|
+
export { Bundler } from '../chunk-UUEHIAGW.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk2ZPQX6BX_cjs = require('./chunk-2ZPQX6BX.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkLA6Y6GAB_cjs = require('./chunk-LA6Y6GAB.cjs');
|
|
5
5
|
var chunkAE4CVAPK_cjs = require('./chunk-AE4CVAPK.cjs');
|
|
6
6
|
var chunkTHU6NH7X_cjs = require('./chunk-THU6NH7X.cjs');
|
|
7
7
|
var fs = require('fs');
|
|
@@ -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-BDAX7X52.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) {
|
|
@@ -74,7 +74,7 @@ var Bundler = class extends bundler.MastraBundler {
|
|
|
74
74
|
return chunkAE4CVAPK_cjs.createBundler(inputOptions, outputOptions);
|
|
75
75
|
}
|
|
76
76
|
async analyze(entry, mastraFile, outputDirectory) {
|
|
77
|
-
return await
|
|
77
|
+
return await chunkLA6Y6GAB_cjs.analyzeBundle(entry, mastraFile, path.join(outputDirectory, this.analyzeOutputDir), "node", this.logger);
|
|
78
78
|
}
|
|
79
79
|
async installDependencies(outputDirectory, rootDir = process.cwd()) {
|
|
80
80
|
const deps = new chunkTHU6NH7X_cjs.DepsService(rootDir);
|
|
@@ -107,7 +107,7 @@ var Bundler = class extends bundler.MastraBundler {
|
|
|
107
107
|
}
|
|
108
108
|
async _bundle(serverFile, mastraEntryFile, outputDirectory, bundleLocation = path.join(outputDirectory, this.outputDir)) {
|
|
109
109
|
this.logger.info("Start bundling Mastra");
|
|
110
|
-
const analyzedBundleInfo = await
|
|
110
|
+
const analyzedBundleInfo = await chunkLA6Y6GAB_cjs.analyzeBundle(
|
|
111
111
|
serverFile,
|
|
112
112
|
mastraEntryFile,
|
|
113
113
|
path.join(outputDirectory, this.analyzeOutputDir),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { recursiveRemoveNonReferencedNodes, removeAllOptionsFromMastraExcept } from './chunk-4AYFLP6G.js';
|
|
2
|
-
import { aliasHono } from './chunk-
|
|
2
|
+
import { aliasHono } from './chunk-USZDOFES.js';
|
|
3
3
|
import { getInputOptions } from './chunk-IKPL4RGG.js';
|
|
4
4
|
import { watch, rollup } from 'rollup';
|
|
5
5
|
import * as babel from '@babel/core';
|
|
@@ -288,7 +288,9 @@ async function validateOutput({
|
|
|
288
288
|
} catch (err) {
|
|
289
289
|
result.invalidChunks.add(file.fileName);
|
|
290
290
|
if (file.isEntry && reverseVirtualReferenceMap.has(file.name)) {
|
|
291
|
-
|
|
291
|
+
const reference = reverseVirtualReferenceMap.get(file.name);
|
|
292
|
+
const dep = reference.startsWith("@") ? reference.split("/").slice(0, 2).join("/") : reference.split("/")[0];
|
|
293
|
+
result.externalDependencies.add(dep);
|
|
292
294
|
}
|
|
293
295
|
}
|
|
294
296
|
}
|
|
@@ -278,7 +278,9 @@ async function validateOutput({
|
|
|
278
278
|
} catch (err) {
|
|
279
279
|
result.invalidChunks.add(file.fileName);
|
|
280
280
|
if (file.isEntry && reverseVirtualReferenceMap.has(file.name)) {
|
|
281
|
-
|
|
281
|
+
const reference = reverseVirtualReferenceMap.get(file.name);
|
|
282
|
+
const dep = reference.startsWith("@") ? reference.split("/").slice(0, 2).join("/") : reference.split("/")[0];
|
|
283
|
+
result.externalDependencies.add(dep);
|
|
282
284
|
}
|
|
283
285
|
}
|
|
284
286
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { writeTelemetryConfig } from './chunk-4AYFLP6G.js';
|
|
2
|
-
import { analyzeBundle } from './chunk-
|
|
2
|
+
import { analyzeBundle } from './chunk-USZDOFES.js';
|
|
3
3
|
import { createBundler, getInputOptions } from './chunk-IKPL4RGG.js';
|
|
4
4
|
import { DepsService } from './chunk-P7ZN2KUE.js';
|
|
5
5
|
import { existsSync } from 'node:fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk2ZPQX6BX_cjs = require('./chunk-2ZPQX6BX.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkLA6Y6GAB_cjs = require('./chunk-LA6Y6GAB.cjs');
|
|
5
5
|
var chunkAE4CVAPK_cjs = require('./chunk-AE4CVAPK.cjs');
|
|
6
6
|
var rollup = require('rollup');
|
|
7
7
|
var babel = require('@babel/core');
|
|
@@ -47,7 +47,7 @@ async function getInputOptions2(entryFile, platform) {
|
|
|
47
47
|
// @ts-ignore
|
|
48
48
|
(plugin) => !plugin || !plugin?.name || plugin.name !== "node-resolve"
|
|
49
49
|
);
|
|
50
|
-
inputOptions.plugins.push(
|
|
50
|
+
inputOptions.plugins.push(chunkLA6Y6GAB_cjs.aliasHono());
|
|
51
51
|
}
|
|
52
52
|
return inputOptions;
|
|
53
53
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBDAX7X52_cjs = require('./chunk-BDAX7X52.cjs');
|
|
4
4
|
var chunk2ZPQX6BX_cjs = require('./chunk-2ZPQX6BX.cjs');
|
|
5
5
|
var chunkNCROGJGB_cjs = require('./chunk-NCROGJGB.cjs');
|
|
6
6
|
var chunkTHU6NH7X_cjs = require('./chunk-THU6NH7X.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 chunkBDAX7X52_cjs.Bundler {
|
|
38
38
|
deps = new chunkTHU6NH7X_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-UUEHIAGW.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';
|