@mastra/deployer 1.50.0-alpha.0 → 1.50.0-alpha.2
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 +31 -0
- package/dist/build/analyze.cjs +2 -2
- package/dist/build/analyze.js +1 -1
- package/dist/build/bundler.cjs +5 -5
- package/dist/build/bundler.js +1 -1
- package/dist/build/fs-routing/codegen.d.ts +16 -2
- package/dist/build/fs-routing/codegen.d.ts.map +1 -1
- package/dist/build/fs-routing/discover.d.ts +20 -0
- package/dist/build/fs-routing/discover.d.ts.map +1 -1
- package/dist/build/fs-routing/prepare.d.ts +13 -10
- package/dist/build/fs-routing/prepare.d.ts.map +1 -1
- package/dist/build/index.cjs +32 -20
- package/dist/build/index.d.ts +4 -4
- package/dist/build/index.d.ts.map +1 -1
- package/dist/build/index.js +5 -5
- package/dist/build/utils.d.ts +7 -0
- package/dist/build/utils.d.ts.map +1 -1
- package/dist/bundler/index.cjs +3 -3
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-N5CQWHN3.cjs → chunk-2GJY6H6M.cjs} +11 -11
- package/dist/{chunk-N5CQWHN3.cjs.map → chunk-2GJY6H6M.cjs.map} +1 -1
- package/dist/{chunk-FHLWDI5H.js → chunk-6ARGMWNC.js} +3 -3
- package/dist/{chunk-FHLWDI5H.js.map → chunk-6ARGMWNC.js.map} +1 -1
- package/dist/{chunk-3GTT2N4V.cjs → chunk-FR6IK3FQ.cjs} +14 -14
- package/dist/{chunk-3GTT2N4V.cjs.map → chunk-FR6IK3FQ.cjs.map} +1 -1
- package/dist/{chunk-ULWJZHTN.js → chunk-I7PL3OZ7.js} +6 -6
- package/dist/{chunk-ULWJZHTN.js.map → chunk-I7PL3OZ7.js.map} +1 -1
- package/dist/{chunk-VNJLLLQN.cjs → chunk-ILNCPWNL.cjs} +7 -7
- package/dist/{chunk-VNJLLLQN.cjs.map → chunk-ILNCPWNL.cjs.map} +1 -1
- package/dist/{chunk-7YI2AEFO.cjs → chunk-JZRFRUGM.cjs} +6 -2
- package/dist/chunk-JZRFRUGM.cjs.map +1 -0
- package/dist/{chunk-4MVAT24Z.js → chunk-LJBNHINW.js} +4 -4
- package/dist/{chunk-4MVAT24Z.js.map → chunk-LJBNHINW.js.map} +1 -1
- package/dist/{chunk-CCBU3OII.js → chunk-UA2DJWFT.js} +3 -3
- package/dist/{chunk-CCBU3OII.js.map → chunk-UA2DJWFT.js.map} +1 -1
- package/dist/{chunk-YG455MPH.js → chunk-UBCDMTQL.js} +88 -16
- package/dist/chunk-UBCDMTQL.js.map +1 -0
- package/dist/{chunk-ANDDGKY5.js → chunk-WP65JQAT.js} +6 -3
- package/dist/chunk-WP65JQAT.js.map +1 -0
- package/dist/{chunk-EU74XSTG.cjs → chunk-XSAPBEYT.cjs} +105 -31
- package/dist/chunk-XSAPBEYT.cjs.map +1 -0
- package/dist/{chunk-IMPHNLMW.cjs → chunk-YWKYOGOS.cjs} +52 -52
- package/dist/{chunk-IMPHNLMW.cjs.map → chunk-YWKYOGOS.cjs.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/dist/server/index.cjs +18 -14
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +15 -11
- package/dist/server/index.js.map +1 -1
- package/dist/server/welcome.d.ts.map +1 -1
- package/dist/validator/custom-resolver.cjs +3 -3
- package/dist/validator/custom-resolver.js +1 -1
- package/package.json +8 -8
- package/dist/chunk-7YI2AEFO.cjs.map +0 -1
- package/dist/chunk-ANDDGKY5.js.map +0 -1
- package/dist/chunk-EU74XSTG.cjs.map +0 -1
- package/dist/chunk-YG455MPH.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk2GJY6H6M_cjs = require('./chunk-2GJY6H6M.cjs');
|
|
4
|
+
var chunkJZRFRUGM_cjs = require('./chunk-JZRFRUGM.cjs');
|
|
5
5
|
var fs = require('fs');
|
|
6
6
|
var promises = require('fs/promises');
|
|
7
7
|
var path = require('path');
|
|
@@ -156,7 +156,7 @@ async function getWorkspaceInformation({
|
|
|
156
156
|
mastraEntryFile
|
|
157
157
|
}) {
|
|
158
158
|
const closestPkgJson = pkg__namespace.up({ cwd: path.dirname(mastraEntryFile) });
|
|
159
|
-
const location = closestPkgJson ? path.dirname(
|
|
159
|
+
const location = closestPkgJson ? path.dirname(chunkJZRFRUGM_cjs.slash(closestPkgJson)) : chunkJZRFRUGM_cjs.slash(process.cwd());
|
|
160
160
|
const workspaces = await findWorkspaces.findWorkspaces(dir, { cache: workspacesCache });
|
|
161
161
|
const _workspaceMap = new Map(
|
|
162
162
|
workspaces?.map((workspace) => [
|
|
@@ -298,22 +298,22 @@ function getInputPlugins({ entry, isVirtualFile }, mastraEntry, { sourcemapEnabl
|
|
|
298
298
|
}
|
|
299
299
|
plugins.push(
|
|
300
300
|
...[
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
301
|
+
chunk2GJY6H6M_cjs.protocolExternalResolver(),
|
|
302
|
+
chunk2GJY6H6M_cjs.mastraInternalAliasPlugin(mastraEntry),
|
|
303
|
+
chunk2GJY6H6M_cjs.mastraToolsAliasPlugin(),
|
|
304
|
+
chunk2GJY6H6M_cjs.tsConfigPaths(),
|
|
305
305
|
json__default.default(),
|
|
306
|
-
|
|
306
|
+
chunk2GJY6H6M_cjs.esbuild(),
|
|
307
307
|
commonjs__default.default({
|
|
308
308
|
strictRequires: "debug",
|
|
309
309
|
ignoreTryCatch: false,
|
|
310
310
|
transformMixedEsModules: true,
|
|
311
311
|
extensions: [".js", ".ts"]
|
|
312
312
|
}),
|
|
313
|
-
|
|
313
|
+
chunk2GJY6H6M_cjs.removeDeployer(mastraEntry, {
|
|
314
314
|
sourcemap: sourcemapEnabled
|
|
315
315
|
}),
|
|
316
|
-
|
|
316
|
+
chunk2GJY6H6M_cjs.esbuild()
|
|
317
317
|
]
|
|
318
318
|
);
|
|
319
319
|
return plugins;
|
|
@@ -331,25 +331,25 @@ async function captureDependenciesToOptimize(output, workspaceMap, projectRoot,
|
|
|
331
331
|
}
|
|
332
332
|
let entryRootPath = projectRoot;
|
|
333
333
|
if (!output.facadeModuleId.startsWith("\0virtual:")) {
|
|
334
|
-
entryRootPath = await
|
|
334
|
+
entryRootPath = await chunk2GJY6H6M_cjs.getPackageRootPath(output.facadeModuleId) || projectRoot;
|
|
335
335
|
}
|
|
336
336
|
for (const [dependency, bindings] of Object.entries(output.importedBindings)) {
|
|
337
|
-
if (!
|
|
337
|
+
if (!chunkJZRFRUGM_cjs.isBareModuleSpecifier(dependency)) {
|
|
338
338
|
continue;
|
|
339
339
|
}
|
|
340
|
-
const pkgName =
|
|
340
|
+
const pkgName = chunkJZRFRUGM_cjs.getPackageName(dependency);
|
|
341
341
|
let rootPath = null;
|
|
342
342
|
let isWorkspace = false;
|
|
343
343
|
let version;
|
|
344
344
|
let packageSpec;
|
|
345
345
|
if (pkgName) {
|
|
346
|
-
const metadata = await
|
|
346
|
+
const metadata = await chunk2GJY6H6M_cjs.getPackageMetadata(dependency, entryRootPath);
|
|
347
347
|
rootPath = metadata.rootPath;
|
|
348
348
|
version = metadata.version;
|
|
349
349
|
packageSpec = metadata.packageSpec;
|
|
350
350
|
isWorkspace = workspaceMap.has(pkgName);
|
|
351
351
|
}
|
|
352
|
-
const normalizedRootPath = rootPath ?
|
|
352
|
+
const normalizedRootPath = rootPath ? chunkJZRFRUGM_cjs.slash(rootPath) : null;
|
|
353
353
|
depsToOptimize.set(dependency, {
|
|
354
354
|
exports: bindings,
|
|
355
355
|
rootPath: normalizedRootPath,
|
|
@@ -422,20 +422,20 @@ async function captureDependenciesToOptimize(output, workspaceMap, projectRoot,
|
|
|
422
422
|
const dynamicImports = output.dynamicImports.filter((d) => !DEPS_TO_IGNORE.includes(d));
|
|
423
423
|
if (dynamicImports.length) {
|
|
424
424
|
for (const dynamicImport of dynamicImports) {
|
|
425
|
-
if (!depsToOptimize.has(dynamicImport) &&
|
|
426
|
-
const pkgName =
|
|
425
|
+
if (!depsToOptimize.has(dynamicImport) && chunkJZRFRUGM_cjs.isBareModuleSpecifier(dynamicImport)) {
|
|
426
|
+
const pkgName = chunkJZRFRUGM_cjs.getPackageName(dynamicImport);
|
|
427
427
|
let version;
|
|
428
428
|
let packageSpec;
|
|
429
429
|
let rootPath = null;
|
|
430
430
|
if (pkgName) {
|
|
431
|
-
const metadata = await
|
|
431
|
+
const metadata = await chunk2GJY6H6M_cjs.getPackageMetadata(dynamicImport, entryRootPath);
|
|
432
432
|
rootPath = metadata.rootPath;
|
|
433
433
|
version = metadata.version;
|
|
434
434
|
packageSpec = metadata.packageSpec;
|
|
435
435
|
}
|
|
436
436
|
depsToOptimize.set(dynamicImport, {
|
|
437
437
|
exports: ["*"],
|
|
438
|
-
rootPath: rootPath ?
|
|
438
|
+
rootPath: rootPath ? chunkJZRFRUGM_cjs.slash(rootPath) : null,
|
|
439
439
|
isWorkspace: false,
|
|
440
440
|
version,
|
|
441
441
|
packageSpec
|
|
@@ -458,7 +458,7 @@ async function analyzeEntry({
|
|
|
458
458
|
shouldCheckTransitiveDependencies = false,
|
|
459
459
|
analyzeCache
|
|
460
460
|
}) {
|
|
461
|
-
const cacheKey = isVirtualFile ? void 0 :
|
|
461
|
+
const cacheKey = isVirtualFile ? void 0 : chunkJZRFRUGM_cjs.slash(entry);
|
|
462
462
|
if (cacheKey && analyzeCache?.has(cacheKey)) {
|
|
463
463
|
return analyzeCache.get(cacheKey);
|
|
464
464
|
}
|
|
@@ -520,7 +520,7 @@ function moduleResolveMap(externals, projectRoot) {
|
|
|
520
520
|
}
|
|
521
521
|
for (const importedId of info.importedIds) {
|
|
522
522
|
for (const external of externals) {
|
|
523
|
-
if (
|
|
523
|
+
if (chunkJZRFRUGM_cjs.isDependencyPartOfPackage(importedId, external)) {
|
|
524
524
|
importMap.set(external, info.id);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
@@ -532,9 +532,9 @@ function moduleResolveMap(externals, projectRoot) {
|
|
|
532
532
|
if (chunk.type === "chunk") {
|
|
533
533
|
for (const [external, resolvedFrom] of importMap) {
|
|
534
534
|
if (chunk.moduleIds.includes(resolvedFrom)) {
|
|
535
|
-
const fullPath = url.pathToFileURL(
|
|
535
|
+
const fullPath = url.pathToFileURL(chunkJZRFRUGM_cjs.slash(path.join(projectRoot, fileName))).toString();
|
|
536
536
|
const innerMap = resolveMap.get(fullPath) || /* @__PURE__ */ new Map();
|
|
537
|
-
innerMap.set(external, url.pathToFileURL(
|
|
537
|
+
innerMap.set(external, url.pathToFileURL(chunkJZRFRUGM_cjs.slash(resolvedFrom)).toString());
|
|
538
538
|
resolveMap.set(fullPath, innerMap);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
@@ -600,7 +600,7 @@ function nodeGypDetector() {
|
|
|
600
600
|
|
|
601
601
|
// src/build/analyze/bundleExternals.ts
|
|
602
602
|
function prepareEntryFileName(name, rootDir) {
|
|
603
|
-
return
|
|
603
|
+
return chunkJZRFRUGM_cjs.rollupSafeName(name, rootDir);
|
|
604
604
|
}
|
|
605
605
|
function createVirtualDependencies(depsToOptimize, {
|
|
606
606
|
projectRoot,
|
|
@@ -650,7 +650,7 @@ function createVirtualDependencies(depsToOptimize, {
|
|
|
650
650
|
continue;
|
|
651
651
|
}
|
|
652
652
|
const fileName = posix.basename(currentDepPath.name);
|
|
653
|
-
const entryName = prepareEntryFileName(
|
|
653
|
+
const entryName = prepareEntryFileName(chunkJZRFRUGM_cjs.getCompiledDepCachePath(rootPath, fileName), rootDir);
|
|
654
654
|
fileNameToDependencyMap.set(entryName, dep);
|
|
655
655
|
optimizedDependencyEntries.set(dep, {
|
|
656
656
|
...currentDepPath,
|
|
@@ -670,9 +670,9 @@ async function getInputPlugins2(virtualDependencies, {
|
|
|
670
670
|
}) {
|
|
671
671
|
const transpilePackagesMap = /* @__PURE__ */ new Map();
|
|
672
672
|
for (const pkg2 of transpilePackages) {
|
|
673
|
-
const dir = await
|
|
673
|
+
const dir = await chunk2GJY6H6M_cjs.getPackageRootPath(pkg2);
|
|
674
674
|
if (dir) {
|
|
675
|
-
transpilePackagesMap.set(pkg2,
|
|
675
|
+
transpilePackagesMap.set(pkg2, chunkJZRFRUGM_cjs.slash(dir));
|
|
676
676
|
} else {
|
|
677
677
|
transpilePackagesMap.set(pkg2, workspaceMap.get(pkg2)?.location ?? pkg2);
|
|
678
678
|
}
|
|
@@ -687,10 +687,10 @@ async function getInputPlugins2(virtualDependencies, {
|
|
|
687
687
|
{}
|
|
688
688
|
)
|
|
689
689
|
),
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
transpilePackagesMap.size ?
|
|
690
|
+
chunk2GJY6H6M_cjs.tsConfigPaths(),
|
|
691
|
+
chunk2GJY6H6M_cjs.protocolExternalResolver(),
|
|
692
|
+
chunk2GJY6H6M_cjs.subpathExternalsResolver(externals),
|
|
693
|
+
transpilePackagesMap.size ? chunk2GJY6H6M_cjs.esbuild({
|
|
694
694
|
format: "esm",
|
|
695
695
|
include: [
|
|
696
696
|
// Match files from transpilePackages by their actual directory paths
|
|
@@ -745,8 +745,8 @@ async function getInputPlugins2(virtualDependencies, {
|
|
|
745
745
|
transformMixedEsModules: true,
|
|
746
746
|
ignoreTryCatch: false
|
|
747
747
|
}),
|
|
748
|
-
bundlerOptions.noBundling ? null : nodeResolve__default.default(
|
|
749
|
-
bundlerOptions.noBundling ?
|
|
748
|
+
bundlerOptions.noBundling ? null : nodeResolve__default.default(chunkJZRFRUGM_cjs.getNodeResolveOptions(platform)),
|
|
749
|
+
bundlerOptions.noBundling ? chunk2GJY6H6M_cjs.esmShim() : null,
|
|
750
750
|
// hono is imported from deployer, so we need to resolve from here instead of the project root
|
|
751
751
|
aliasHono(),
|
|
752
752
|
json__default.default(),
|
|
@@ -839,9 +839,9 @@ async function buildExternalDependencies(virtualDependencies, {
|
|
|
839
839
|
if (noBundling) {
|
|
840
840
|
const importedFromPackages = /* @__PURE__ */ new Set();
|
|
841
841
|
for (const moduleId of chunkInfo.moduleIds) {
|
|
842
|
-
const normalized =
|
|
842
|
+
const normalized = chunkJZRFRUGM_cjs.slash(moduleId);
|
|
843
843
|
for (const [pkgName, pkgInfo] of workspaceMap.entries()) {
|
|
844
|
-
const location =
|
|
844
|
+
const location = chunkJZRFRUGM_cjs.slash(pkgInfo.location);
|
|
845
845
|
if (normalized.startsWith(location)) {
|
|
846
846
|
importedFromPackages.add(pkgName);
|
|
847
847
|
break;
|
|
@@ -863,7 +863,7 @@ async function buildExternalDependencies(virtualDependencies, {
|
|
|
863
863
|
if (importedFromPackages.size === 1) {
|
|
864
864
|
const [pkgName] = importedFromPackages;
|
|
865
865
|
const workspaceLocation = workspaceMap.get(pkgName).location;
|
|
866
|
-
return prepareEntryFileName(
|
|
866
|
+
return prepareEntryFileName(chunkJZRFRUGM_cjs.getCompiledDepCachePath(workspaceLocation, "[name].mjs"), rootDir);
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
869
|
return `${outputDirRelative}/[name].mjs`;
|
|
@@ -881,7 +881,7 @@ function findExternalImporter(module, external, allOutputs, visited = /* @__PURE
|
|
|
881
881
|
visited.add(module.fileName);
|
|
882
882
|
const capturedFiles = /* @__PURE__ */ new Set();
|
|
883
883
|
for (const id of [...module.imports, ...module.dynamicImports]) {
|
|
884
|
-
if (
|
|
884
|
+
if (chunkJZRFRUGM_cjs.isDependencyPartOfPackage(id, external)) {
|
|
885
885
|
return module;
|
|
886
886
|
} else {
|
|
887
887
|
if (id.endsWith(".mjs")) {
|
|
@@ -1143,18 +1143,18 @@ async function resolveDependencyInfo(dep, existing, parentPaths) {
|
|
|
1143
1143
|
if (existing?.version || existing?.packageSpec) {
|
|
1144
1144
|
return existing;
|
|
1145
1145
|
}
|
|
1146
|
-
const packageName =
|
|
1146
|
+
const packageName = chunkJZRFRUGM_cjs.getPackageName(dep);
|
|
1147
1147
|
const packageNames = [...new Set([dep, packageName].filter(Boolean))];
|
|
1148
1148
|
for (const parentPath of parentPaths) {
|
|
1149
1149
|
for (const name of packageNames) {
|
|
1150
|
-
const metadata = await
|
|
1150
|
+
const metadata = await chunk2GJY6H6M_cjs.getPackageMetadata(name, parentPath);
|
|
1151
1151
|
if (metadata.version || metadata.packageSpec) {
|
|
1152
1152
|
return preferDependencyInfo(existing, metadata);
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
for (const name of packageNames) {
|
|
1157
|
-
const metadata = await
|
|
1157
|
+
const metadata = await chunk2GJY6H6M_cjs.getPackageMetadata(name);
|
|
1158
1158
|
if (metadata.version || metadata.packageSpec) {
|
|
1159
1159
|
return preferDependencyInfo(existing, metadata);
|
|
1160
1160
|
}
|
|
@@ -1323,10 +1323,10 @@ async function validateOutput({
|
|
|
1323
1323
|
];
|
|
1324
1324
|
for (const deps of Object.values(usedExternals)) {
|
|
1325
1325
|
for (const [dep, importerId] of Object.entries(deps)) {
|
|
1326
|
-
if (
|
|
1326
|
+
if (chunkJZRFRUGM_cjs.isExternalProtocolImport(dep)) {
|
|
1327
1327
|
continue;
|
|
1328
1328
|
}
|
|
1329
|
-
const pkgName =
|
|
1329
|
+
const pkgName = chunkJZRFRUGM_cjs.getPackageName(dep);
|
|
1330
1330
|
if (pkgName) {
|
|
1331
1331
|
const versionInfo = depsVersionInfo.get(dep) || depsVersionInfo.get(pkgName);
|
|
1332
1332
|
const dependencyInfo = await resolveDependencyInfo(
|
|
@@ -1418,9 +1418,9 @@ async function analyzeBundle(entries, mastraEntry, {
|
|
|
1418
1418
|
});
|
|
1419
1419
|
await promises.writeFile(path.join(outputDir, `entry-${index++}.mjs`), analyzeResult.output.code);
|
|
1420
1420
|
for (const [dep, metadata] of analyzeResult.dependencies.entries()) {
|
|
1421
|
-
const isPartOfExternals = allExternals.some((external) =>
|
|
1421
|
+
const isPartOfExternals = allExternals.some((external) => chunkJZRFRUGM_cjs.isDependencyPartOfPackage(dep, external));
|
|
1422
1422
|
if (isPartOfExternals || externalsPreset && !metadata.isWorkspace) {
|
|
1423
|
-
const pkgName =
|
|
1423
|
+
const pkgName = chunkJZRFRUGM_cjs.getPackageName(dep);
|
|
1424
1424
|
if (pkgName) {
|
|
1425
1425
|
allUsedExternals.set(pkgName, preferDependencyInfo(allUsedExternals.get(pkgName), metadata));
|
|
1426
1426
|
}
|
|
@@ -1441,7 +1441,7 @@ async function analyzeBundle(entries, mastraEntry, {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
const depsVersionInfo = /* @__PURE__ */ new Map();
|
|
1443
1443
|
for (const [dep, metadata] of depsToOptimize.entries()) {
|
|
1444
|
-
const pkgName =
|
|
1444
|
+
const pkgName = chunkJZRFRUGM_cjs.getPackageName(dep);
|
|
1445
1445
|
if (pkgName && (metadata.version || metadata.packageSpec)) {
|
|
1446
1446
|
depsVersionInfo.set(pkgName, preferDependencyInfo(depsVersionInfo.get(pkgName), metadata));
|
|
1447
1447
|
}
|
|
@@ -1471,7 +1471,7 @@ async function analyzeBundle(entries, mastraEntry, {
|
|
|
1471
1471
|
platform
|
|
1472
1472
|
});
|
|
1473
1473
|
const relativeWorkspaceFolderPaths = Array.from(workspaceMap.values()).map(
|
|
1474
|
-
(pkgInfo) =>
|
|
1474
|
+
(pkgInfo) => chunkJZRFRUGM_cjs.slash(path.relative(workspaceRoot || projectRoot, pkgInfo.location))
|
|
1475
1475
|
);
|
|
1476
1476
|
for (const o of output) {
|
|
1477
1477
|
if (o.type === "asset") {
|
|
@@ -1479,19 +1479,19 @@ async function analyzeBundle(entries, mastraEntry, {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
const importerId = getLastConcreteModuleId(o.moduleIds);
|
|
1481
1481
|
for (const i of o.imports) {
|
|
1482
|
-
if (
|
|
1482
|
+
if (chunkJZRFRUGM_cjs.isBuiltinModule(i)) {
|
|
1483
1483
|
continue;
|
|
1484
1484
|
}
|
|
1485
1485
|
if (i.startsWith(".") || i.startsWith("/")) {
|
|
1486
1486
|
continue;
|
|
1487
1487
|
}
|
|
1488
|
-
if (!
|
|
1488
|
+
if (!chunkJZRFRUGM_cjs.isBareModuleSpecifier(i) || chunkJZRFRUGM_cjs.isExternalProtocolImport(i)) {
|
|
1489
1489
|
continue;
|
|
1490
1490
|
}
|
|
1491
1491
|
if (relativeWorkspaceFolderPaths.some((workspacePath) => i.startsWith(workspacePath))) {
|
|
1492
1492
|
continue;
|
|
1493
1493
|
}
|
|
1494
|
-
const pkgName =
|
|
1494
|
+
const pkgName = chunkJZRFRUGM_cjs.getPackageName(i);
|
|
1495
1495
|
if (pkgName) {
|
|
1496
1496
|
const versionInfo = depsVersionInfo.get(i) || depsVersionInfo.get(pkgName);
|
|
1497
1497
|
const dependencyInfo = await resolveDependencyInfo(
|
|
@@ -1520,7 +1520,7 @@ async function analyzeBundle(entries, mastraEntry, {
|
|
|
1520
1520
|
);
|
|
1521
1521
|
const mergedExternalDeps = new Map(result.externalDependencies);
|
|
1522
1522
|
for (const [dep, info] of allUsedExternals) {
|
|
1523
|
-
if (
|
|
1523
|
+
if (chunkJZRFRUGM_cjs.isExternalProtocolImport(dep)) {
|
|
1524
1524
|
continue;
|
|
1525
1525
|
}
|
|
1526
1526
|
mergedExternalDeps.set(dep, preferDependencyInfo(mergedExternalDeps.get(dep), info));
|
|
@@ -1557,5 +1557,5 @@ async function analyzeBundle(entries, mastraEntry, {
|
|
|
1557
1557
|
exports.aliasHono = aliasHono;
|
|
1558
1558
|
exports.analyzeBundle = analyzeBundle;
|
|
1559
1559
|
exports.getWorkspaceInformation = getWorkspaceInformation;
|
|
1560
|
-
//# sourceMappingURL=chunk-
|
|
1561
|
-
//# sourceMappingURL=chunk-
|
|
1560
|
+
//# sourceMappingURL=chunk-YWKYOGOS.cjs.map
|
|
1561
|
+
//# sourceMappingURL=chunk-YWKYOGOS.cjs.map
|