mastra 0.1.57-unstable.88 → 0.1.57-unstable.89
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;
|
|
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"}
|
package/dist/utils/bundle.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
|
+
import { existsSync } from 'fs';
|
|
2
3
|
import { join } from 'path';
|
|
3
4
|
import path from 'path';
|
|
4
5
|
import { fileURLToPath } from 'url';
|
|
@@ -13,7 +14,7 @@ export async function bundleServer(entryPoint) {
|
|
|
13
14
|
upsertMastraDir();
|
|
14
15
|
const outfile = join(process.cwd(), '.mastra', 'server.mjs');
|
|
15
16
|
const cliNodeModules = join(path.dirname(path.dirname(__dirname)), 'node_modules');
|
|
16
|
-
if (!cliNodeModules) {
|
|
17
|
+
if (!existsSync(cliNodeModules)) {
|
|
17
18
|
logger.error('Mastra CLI is not installed. Please run `npm install -g mastra` to install Mastra CLI.');
|
|
18
19
|
process.exit(1);
|
|
19
20
|
}
|