@mastra/deployer 0.1.0-alpha.39 → 0.1.0-alpha.40

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.40
4
+
5
+ ### Patch Changes
6
+
7
+ - 8329f1a: Add debug env
8
+
3
9
  ## 0.1.0-alpha.39
4
10
 
5
11
  ### Patch Changes
@@ -1,2 +1,2 @@
1
- export { analyzeBundle } from '../chunk-L2SCZHP4.js';
1
+ export { analyzeBundle } from '../chunk-VBYYHCDM.js';
2
2
  import '../chunk-YNXJO2XU.js';
@@ -1,2 +1,2 @@
1
- export { createBundler, getInputOptions } from '../chunk-ODEOQDHZ.js';
1
+ export { createBundler, getInputOptions } from '../chunk-RCYKCEGL.js';
2
2
  import '../chunk-YNXJO2XU.js';
@@ -1,5 +1,5 @@
1
- export { FileService, createWatcher, getBundler, getWatcher, getInputOptions as getWatcherInputOptions } from '../chunk-DKKDXWES.js';
1
+ export { FileService, createWatcher, getBundler, getWatcher, getInputOptions as getWatcherInputOptions } from '../chunk-DJDTDBTZ.js';
2
2
  export { Deps } from '../chunk-Q3WKR6OZ.js';
3
- export { analyzeBundle } from '../chunk-L2SCZHP4.js';
4
- export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-ODEOQDHZ.js';
3
+ export { analyzeBundle } from '../chunk-VBYYHCDM.js';
4
+ export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-RCYKCEGL.js';
5
5
  import '../chunk-YNXJO2XU.js';
@@ -1,5 +1,5 @@
1
- export { Bundler } from '../chunk-E3NXSEZQ.js';
1
+ export { Bundler } from '../chunk-UCIQKTCV.js';
2
2
  import '../chunk-Q3WKR6OZ.js';
3
- import '../chunk-L2SCZHP4.js';
4
- import '../chunk-ODEOQDHZ.js';
3
+ import '../chunk-VBYYHCDM.js';
4
+ import '../chunk-RCYKCEGL.js';
5
5
  import '../chunk-YNXJO2XU.js';
@@ -1,5 +1,5 @@
1
- import { aliasHono } from './chunk-L2SCZHP4.js';
2
- import { getInputOptions, telemetryFix, libSqlFix } from './chunk-ODEOQDHZ.js';
1
+ import { aliasHono } from './chunk-VBYYHCDM.js';
2
+ import { getInputOptions, telemetryFix, libSqlFix } from './chunk-RCYKCEGL.js';
3
3
  import { removeDeployer } from './chunk-YNXJO2XU.js';
4
4
  import alias from '@rollup/plugin-alias';
5
5
  import commonjs from '@rollup/plugin-commonjs';
@@ -160,7 +160,7 @@ async function getInputOptions(entryFile, analyzedBundleInfo, platform2) {
160
160
  browser: true
161
161
  });
162
162
  return {
163
- logLevel: "silent",
163
+ logLevel: process.env.MASTRA_BUNDLER_DEBUG === "true" ? "debug" : "silent",
164
164
  treeshake: true,
165
165
  preserveSymlinks: true,
166
166
  external: Array.from(analyzedBundleInfo.externalDependencies),
@@ -1,6 +1,6 @@
1
1
  import { Deps } from './chunk-Q3WKR6OZ.js';
2
- import { analyzeBundle } from './chunk-L2SCZHP4.js';
3
- import { createBundler, getInputOptions } from './chunk-ODEOQDHZ.js';
2
+ import { analyzeBundle } from './chunk-VBYYHCDM.js';
3
+ import { createBundler, getInputOptions } from './chunk-RCYKCEGL.js';
4
4
  import { MastraBundler } from '@mastra/core/bundler';
5
5
  import virtual from '@rollup/plugin-virtual';
6
6
  import { ensureDir } from 'fs-extra';
@@ -108,7 +108,7 @@ async function analyze(entry, mastraEntry, isVirtualFile, platform, logger) {
108
108
  entry = "#entry";
109
109
  }
110
110
  const optimizerBundler = await rollup({
111
- logLevel: "silent",
111
+ logLevel: process.env.MASTRA_BUNDLER_DEBUG === "true" ? "debug" : "silent",
112
112
  input: isVirtualFile ? "#entry" : entry,
113
113
  treeshake: true,
114
114
  preserveSymlinks: true,
@@ -169,7 +169,7 @@ async function bundleExternals(depsToOptimize, outputDir, logger) {
169
169
  });
170
170
  }
171
171
  const bundler = await rollup({
172
- logLevel: "silent",
172
+ logLevel: process.env.MASTRA_BUNDLER_DEBUG === "true" ? "debug" : "silent",
173
173
  input: Array.from(virtualDependencies.entries()).reduce(
174
174
  (acc, [dep, virtualDep]) => {
175
175
  acc[virtualDep.name] = `#virtual-${dep}`;
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { FileService } from './chunk-DKKDXWES.js';
2
- export { FileService, getBundler, getWatcher } from './chunk-DKKDXWES.js';
3
- import { Bundler } from './chunk-E3NXSEZQ.js';
1
+ import { FileService } from './chunk-DJDTDBTZ.js';
2
+ export { FileService, getBundler, getWatcher } from './chunk-DJDTDBTZ.js';
3
+ import { Bundler } from './chunk-UCIQKTCV.js';
4
4
  import { Deps } from './chunk-Q3WKR6OZ.js';
5
5
  export { Deps, createChildProcessLogger, createPinoStream } from './chunk-Q3WKR6OZ.js';
6
- import './chunk-L2SCZHP4.js';
7
- import './chunk-ODEOQDHZ.js';
6
+ import './chunk-VBYYHCDM.js';
7
+ import './chunk-RCYKCEGL.js';
8
8
  import './chunk-YNXJO2XU.js';
9
9
  import '@mastra/core/deployer';
10
10
  import * as babel from '@babel/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.1.0-alpha.39",
3
+ "version": "0.1.0-alpha.40",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -41,7 +41,7 @@ async function analyze(
41
41
  }
42
42
 
43
43
  const optimizerBundler = await rollup({
44
- logLevel: 'silent',
44
+ logLevel: process.env.MASTRA_BUNDLER_DEBUG === 'true' ? 'debug' : 'silent',
45
45
  input: isVirtualFile ? '#entry' : entry,
46
46
  treeshake: true,
47
47
  preserveSymlinks: true,
@@ -121,7 +121,7 @@ async function bundleExternals(depsToOptimize: Map<string, string[]>, outputDir:
121
121
  }
122
122
 
123
123
  const bundler = await rollup({
124
- logLevel: 'silent',
124
+ logLevel: process.env.MASTRA_BUNDLER_DEBUG === 'true' ? 'debug' : 'silent',
125
125
  input: Array.from(virtualDependencies.entries()).reduce(
126
126
  (acc, [dep, virtualDep]) => {
127
127
  acc[virtualDep.name] = `#virtual-${dep}`;
@@ -30,7 +30,7 @@ export async function getInputOptions(
30
30
  });
31
31
 
32
32
  return {
33
- logLevel: 'silent',
33
+ logLevel: process.env.MASTRA_BUNDLER_DEBUG === 'true' ? 'debug' : 'silent',
34
34
  treeshake: true,
35
35
  preserveSymlinks: true,
36
36
  external: Array.from(analyzedBundleInfo.externalDependencies),