@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 0.1.0-alpha.56
4
+
5
+ ### Patch Changes
6
+
7
+ - 246f06c: Fix import \* from telemetry package
8
+
3
9
  ## 0.1.0-alpha.55
4
10
 
5
11
  ### Patch Changes
@@ -1,2 +1,2 @@
1
- export { analyzeBundle } from '../chunk-WXH2HMQ2.js';
1
+ export { analyzeBundle } from '../chunk-ERNQNTBH.js';
2
2
  import '../chunk-YNXJO2XU.js';
@@ -1,5 +1,5 @@
1
- export { FileService, createWatcher, getBundler, getWatcher, getInputOptions as getWatcherInputOptions } from '../chunk-26GWIITS.js';
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-WXH2HMQ2.js';
3
+ export { analyzeBundle } from '../chunk-ERNQNTBH.js';
4
4
  export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-KXS4XYEJ.js';
5
5
  import '../chunk-YNXJO2XU.js';
@@ -1,5 +1,5 @@
1
- export { Bundler } from '../chunk-2KUA6SZ2.js';
1
+ export { Bundler } from '../chunk-XSSW3PB4.js';
2
2
  import '../chunk-Q3WKR6OZ.js';
3
- import '../chunk-WXH2HMQ2.js';
3
+ import '../chunk-ERNQNTBH.js';
4
4
  import '../chunk-KXS4XYEJ.js';
5
5
  import '../chunk-YNXJO2XU.js';
@@ -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
- virtualDependencies.set(dep, {
168
- name,
169
- virtual: `export { ${exports.join(", ")} } from '${dep}';`
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-WXH2HMQ2.js';
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-WXH2HMQ2.js';
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-2KUA6SZ2.js';
2
- import { FileService } from './chunk-26GWIITS.js';
3
- export { FileService, getBundler, getWatcher } from './chunk-26GWIITS.js';
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-WXH2HMQ2.js';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.1.0-alpha.55",
3
+ "version": "0.1.0-alpha.56",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -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
- virtualDependencies.set(dep, {
116
- name,
117
- virtual: `export { ${exports.join(', ')} } from '${dep}';`,
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({