@mastra/deployer 0.1.0-alpha.55 → 0.1.0-alpha.56
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/CHANGELOG.md +6 -0
- package/dist/build/analyze.js +1 -1
- package/dist/build/index.js +2 -2
- package/dist/bundler/index.js +2 -2
- package/dist/{chunk-WXH2HMQ2.js → chunk-ERNQNTBH.js} +11 -4
- package/dist/{chunk-26GWIITS.js → chunk-I7EFK2FV.js} +1 -1
- package/dist/{chunk-2KUA6SZ2.js → chunk-XSSW3PB4.js} +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/src/build/analyze.ts +13 -4
package/CHANGELOG.md
CHANGED
package/dist/build/analyze.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { analyzeBundle } from '../chunk-
|
|
1
|
+
export { analyzeBundle } from '../chunk-ERNQNTBH.js';
|
|
2
2
|
import '../chunk-YNXJO2XU.js';
|
package/dist/build/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { FileService, createWatcher, getBundler, getWatcher, getInputOptions as getWatcherInputOptions } from '../chunk-
|
|
1
|
+
export { FileService, createWatcher, getBundler, getWatcher, getInputOptions as getWatcherInputOptions } from '../chunk-I7EFK2FV.js';
|
|
2
2
|
export { Deps } from '../chunk-Q3WKR6OZ.js';
|
|
3
|
-
export { analyzeBundle } from '../chunk-
|
|
3
|
+
export { analyzeBundle } from '../chunk-ERNQNTBH.js';
|
|
4
4
|
export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-KXS4XYEJ.js';
|
|
5
5
|
import '../chunk-YNXJO2XU.js';
|
package/dist/bundler/index.js
CHANGED
|
@@ -164,10 +164,17 @@ async function bundleExternals(depsToOptimize, outputDir, logger) {
|
|
|
164
164
|
for (const [dep, exports] of depsToOptimize.entries()) {
|
|
165
165
|
const name = dep.replaceAll("/", "-");
|
|
166
166
|
reverseVirtualReferenceMap.set(name, dep);
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
if (dep === "@mastra/core/telemetry" && exports.length === 1 && exports[0] === "*") {
|
|
168
|
+
virtualDependencies.set(dep, {
|
|
169
|
+
name,
|
|
170
|
+
virtual: `export * as telemetry from '${dep}';`
|
|
171
|
+
});
|
|
172
|
+
} else {
|
|
173
|
+
virtualDependencies.set(dep, {
|
|
174
|
+
name,
|
|
175
|
+
virtual: `export { ${exports.join(", ")} } from '${dep}';`
|
|
176
|
+
});
|
|
177
|
+
}
|
|
171
178
|
}
|
|
172
179
|
const bundler = await rollup({
|
|
173
180
|
logLevel: process.env.MASTRA_BUNDLER_DEBUG === "true" ? "debug" : "silent",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aliasHono } from './chunk-
|
|
1
|
+
import { aliasHono } from './chunk-ERNQNTBH.js';
|
|
2
2
|
import { getInputOptions, telemetryFix, libSqlFix } from './chunk-KXS4XYEJ.js';
|
|
3
3
|
import { removeDeployer } from './chunk-YNXJO2XU.js';
|
|
4
4
|
import alias from '@rollup/plugin-alias';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Deps } from './chunk-Q3WKR6OZ.js';
|
|
2
|
-
import { analyzeBundle } from './chunk-
|
|
2
|
+
import { analyzeBundle } from './chunk-ERNQNTBH.js';
|
|
3
3
|
import { createBundler, getInputOptions } from './chunk-KXS4XYEJ.js';
|
|
4
4
|
import { MastraBundler } from '@mastra/core/bundler';
|
|
5
5
|
import virtual from '@rollup/plugin-virtual';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Bundler } from './chunk-
|
|
2
|
-
import { FileService } from './chunk-
|
|
3
|
-
export { FileService, getBundler, getWatcher } from './chunk-
|
|
1
|
+
import { Bundler } from './chunk-XSSW3PB4.js';
|
|
2
|
+
import { FileService } from './chunk-I7EFK2FV.js';
|
|
3
|
+
export { FileService, getBundler, getWatcher } from './chunk-I7EFK2FV.js';
|
|
4
4
|
import { Deps } from './chunk-Q3WKR6OZ.js';
|
|
5
5
|
export { Deps, createChildProcessLogger, createPinoStream } from './chunk-Q3WKR6OZ.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-ERNQNTBH.js';
|
|
7
7
|
import './chunk-KXS4XYEJ.js';
|
|
8
8
|
import './chunk-YNXJO2XU.js';
|
|
9
9
|
import '@mastra/core/deployer';
|
package/package.json
CHANGED
package/src/build/analyze.ts
CHANGED
|
@@ -112,10 +112,19 @@ async function bundleExternals(depsToOptimize: Map<string, string[]>, outputDir:
|
|
|
112
112
|
for (const [dep, exports] of depsToOptimize.entries()) {
|
|
113
113
|
const name = dep.replaceAll('/', '-');
|
|
114
114
|
reverseVirtualReferenceMap.set(name, dep);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
|
|
116
|
+
// temporary fix for * import of telemetry, move ast checks???
|
|
117
|
+
if (dep === '@mastra/core/telemetry' && exports.length === 1 && exports[0] === '*') {
|
|
118
|
+
virtualDependencies.set(dep, {
|
|
119
|
+
name,
|
|
120
|
+
virtual: `export * as telemetry from '${dep}';`,
|
|
121
|
+
});
|
|
122
|
+
} else {
|
|
123
|
+
virtualDependencies.set(dep, {
|
|
124
|
+
name,
|
|
125
|
+
virtual: `export { ${exports.join(', ')} } from '${dep}';`,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
119
128
|
}
|
|
120
129
|
|
|
121
130
|
const bundler = await rollup({
|