mastra 0.1.57-unstable.89 → 0.1.57-unstable.91

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.
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/utils/bundle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAcnC,wBAAsB,YAAY,CAAC,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IA6FpD;AAED,wBAAsB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;IAuGnH"}
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/utils/bundle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAanC,wBAAsB,YAAY,CAAC,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IA8FpD;AAED,wBAAsB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;IAuGnH"}
@@ -1,5 +1,4 @@
1
1
  import * as esbuild from 'esbuild';
2
- import { existsSync } from 'fs';
3
2
  import { join } from 'path';
4
3
  import path from 'path';
5
4
  import { fileURLToPath } from 'url';
@@ -14,8 +13,9 @@ export async function bundleServer(entryPoint) {
14
13
  upsertMastraDir();
15
14
  const outfile = join(process.cwd(), '.mastra', 'server.mjs');
16
15
  const cliNodeModules = join(path.dirname(path.dirname(__dirname)), 'node_modules');
17
- if (!existsSync(cliNodeModules)) {
18
- logger.error('Mastra CLI is not installed. Please run `npm install -g mastra` to install Mastra CLI.');
16
+ const cli = require('mastra');
17
+ if (!cli) {
18
+ logger.error('Mastra CLI is not found. Please run `npm install -g mastra` to install Mastra CLI.');
19
19
  process.exit(1);
20
20
  }
21
21
  const result = await esbuild.build({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mastra",
3
- "version": "0.1.57-unstable.89",
3
+ "version": "0.1.57-unstable.91",
4
4
  "license": "MIT",
5
5
  "description": "cli for mastra",
6
6
  "type": "module",