@mastra/deployer 1.58.0-alpha.0 → 1.58.0-alpha.12
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 +164 -0
- package/dist/_types/@hono_node-server/dist/index.d.mts +101 -0
- package/dist/_types/@mastra_hono/dist/index.d.ts +24 -1
- package/dist/{analyze-C6SiypMS.cjs → analyze-BIrkd7zx.cjs} +12 -5
- package/dist/{analyze-C6SiypMS.cjs.map → analyze-BIrkd7zx.cjs.map} +1 -1
- package/dist/{analyze-mZfLnmw2.js → analyze-CNv6Qdaz.js} +12 -5
- package/dist/{analyze-mZfLnmw2.js.map → analyze-CNv6Qdaz.js.map} +1 -1
- package/dist/build/analyze.cjs +1 -1
- package/dist/build/analyze.d.ts.map +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/bundler.cjs +1 -1
- package/dist/build/bundler.d.ts +2 -1
- package/dist/build/bundler.d.ts.map +1 -1
- package/dist/build/bundler.js +1 -1
- package/dist/build/fs-routing/codegen.d.ts +5 -4
- package/dist/build/fs-routing/codegen.d.ts.map +1 -1
- package/dist/build/fs-routing/discover.d.ts +12 -5
- package/dist/build/fs-routing/discover.d.ts.map +1 -1
- package/dist/build/index.cjs +5 -5
- package/dist/build/index.js +5 -5
- package/dist/build/types.d.ts +11 -0
- package/dist/build/types.d.ts.map +1 -1
- package/dist/build/watcher.d.ts.map +1 -1
- package/dist/{build-BEtx4cTU.cjs → build-BERX35Pi.cjs} +31 -19
- package/dist/build-BERX35Pi.cjs.map +1 -0
- package/dist/{build-C5mUjLVf.js → build-kZfvpuh9.js} +31 -19
- package/dist/build-kZfvpuh9.js.map +1 -0
- package/dist/bundler/entries.d.ts +12 -0
- package/dist/bundler/entries.d.ts.map +1 -0
- package/dist/bundler/index.cjs +6 -345
- package/dist/bundler/index.d.ts +52 -2
- package/dist/bundler/index.d.ts.map +1 -1
- package/dist/bundler/index.js +2 -340
- package/dist/bundler-Ct1ToG6x.js +565 -0
- package/dist/bundler-Ct1ToG6x.js.map +1 -0
- package/dist/{bundler-u9WOUtpl.cjs → bundler-DCGtF4jP.cjs} +7 -3
- package/dist/{bundler-u9WOUtpl.cjs.map → bundler-DCGtF4jP.cjs.map} +1 -1
- package/dist/bundler-DLXwkS7b.cjs +598 -0
- package/dist/bundler-DLXwkS7b.cjs.map +1 -0
- package/dist/{bundler-U9F2---r.js → bundler-gff4vn1T.js} +8 -4
- package/dist/bundler-gff4vn1T.js.map +1 -0
- package/dist/{bundlerOptions-CYRir4LE.cjs → bundlerOptions-CjjAPZYp.cjs} +2 -2
- package/dist/{bundlerOptions-CYRir4LE.cjs.map → bundlerOptions-CjjAPZYp.cjs.map} +1 -1
- package/dist/{bundlerOptions-9DigsVhY.js → bundlerOptions-NMtZPD7p.js} +2 -2
- package/dist/{bundlerOptions-9DigsVhY.js.map → bundlerOptions-NMtZPD7p.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/server/index.cjs +954 -167
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +955 -167
- package/dist/server/index.js.map +1 -1
- package/dist/services/deps.d.ts +3 -1
- package/dist/services/deps.d.ts.map +1 -1
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.js +1 -1
- package/dist/{services-CHz7RuZ1.js → services-BRF1RRXB.js} +39 -4
- package/dist/services-BRF1RRXB.js.map +1 -0
- package/dist/{services-Cw3Ho44Z.cjs → services-_ksvysL5.cjs} +39 -4
- package/dist/services-_ksvysL5.cjs.map +1 -0
- package/package.json +9 -8
- package/dist/_types/@hono_node-server/dist/index.d.ts +0 -8
- package/dist/_types/@hono_node-server/dist/listener.d.ts +0 -13
- package/dist/_types/@hono_node-server/dist/request.d.ts +0 -25
- package/dist/_types/@hono_node-server/dist/server.d.ts +0 -10
- package/dist/_types/@hono_node-server/dist/types.d.ts +0 -44
- package/dist/build-BEtx4cTU.cjs.map +0 -1
- package/dist/build-C5mUjLVf.js.map +0 -1
- package/dist/bundler/index.cjs.map +0 -1
- package/dist/bundler/index.js.map +0 -1
- package/dist/bundler-U9F2---r.js.map +0 -1
- package/dist/services-CHz7RuZ1.js.map +0 -1
- package/dist/services-Cw3Ho44Z.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as getPackageName, c as isBuiltinModule, f as rollupSafeName, i as getNodeResolveOptions, l as isDependencyPartOfPackage, p as slash, r as getCompiledDepCachePath, s as isBareModuleSpecifier, u as isExternalProtocolImport } from "./utils-FVOUvj-I.js";
|
|
2
|
-
import { i as DepsService } from "./services-
|
|
3
|
-
import { a as tsConfigPaths, c as protocolExternalResolver, d as getPackageRootPath, f as esmShim, i as mastraToolsAliasPlugin, o as subpathExternalsResolver, p as esbuild, r as mastraInternalAliasPlugin, s as removeDeployer, u as getPackageMetadata } from "./bundler-
|
|
2
|
+
import { i as DepsService } from "./services-BRF1RRXB.js";
|
|
3
|
+
import { a as tsConfigPaths, c as protocolExternalResolver, d as getPackageRootPath, f as esmShim, i as mastraToolsAliasPlugin, o as subpathExternalsResolver, p as esbuild, r as mastraInternalAliasPlugin, s as removeDeployer, u as getPackageMetadata } from "./bundler-gff4vn1T.js";
|
|
4
4
|
import { spawn } from "child_process";
|
|
5
5
|
import { existsSync } from "fs";
|
|
6
6
|
import { readFile, writeFile } from "fs/promises";
|
|
@@ -1205,7 +1205,7 @@ async function validateFile(root, file, { binaryMapData, moduleResolveMapLocatio
|
|
|
1205
1205
|
* @param workspaceMap - Map of workspace packages that gets directly passed through for later consumption
|
|
1206
1206
|
* @returns Analysis result containing dependency mappings
|
|
1207
1207
|
*/
|
|
1208
|
-
async function validateOutput({ output, reverseVirtualReferenceMap, usedExternals, outputDir, projectRoot, workspaceMap, depsVersionInfo }, logger) {
|
|
1208
|
+
async function validateOutput({ output, reverseVirtualReferenceMap, usedExternals, userExternals, outputDir, projectRoot, workspaceMap, depsVersionInfo }, logger) {
|
|
1209
1209
|
const result = {
|
|
1210
1210
|
dependencies: /* @__PURE__ */ new Map(),
|
|
1211
1211
|
externalDependencies: /* @__PURE__ */ new Map(),
|
|
@@ -1225,6 +1225,12 @@ async function validateOutput({ output, reverseVirtualReferenceMap, usedExternal
|
|
|
1225
1225
|
const binaryMap = await readFile(join(outputDir, "binary-map.json"), "utf-8");
|
|
1226
1226
|
binaryMapData = JSON.parse(binaryMap);
|
|
1227
1227
|
}
|
|
1228
|
+
const stubbedExternals = [.../* @__PURE__ */ new Set([
|
|
1229
|
+
...GLOBAL_EXTERNALS,
|
|
1230
|
+
...DEPS_TO_IGNORE,
|
|
1231
|
+
...userExternals,
|
|
1232
|
+
...result.externalDependencies.keys()
|
|
1233
|
+
])];
|
|
1228
1234
|
for (const file of output) {
|
|
1229
1235
|
if (file.type === "asset") continue;
|
|
1230
1236
|
logger.debug("Validating module", { fileName: file.fileName });
|
|
@@ -1234,7 +1240,7 @@ async function validateOutput({ output, reverseVirtualReferenceMap, usedExternal
|
|
|
1234
1240
|
moduleResolveMapLocation: join(outputDir, "module-resolve-map.json"),
|
|
1235
1241
|
logger,
|
|
1236
1242
|
workspaceMap,
|
|
1237
|
-
stubbedExternals
|
|
1243
|
+
stubbedExternals
|
|
1238
1244
|
});
|
|
1239
1245
|
}
|
|
1240
1246
|
return result;
|
|
@@ -1352,6 +1358,7 @@ async function analyzeBundle(entries, mastraEntry, { outputDir, projectRoot, pla
|
|
|
1352
1358
|
output,
|
|
1353
1359
|
reverseVirtualReferenceMap: fileNameToDependencyMap,
|
|
1354
1360
|
usedExternals,
|
|
1361
|
+
userExternals,
|
|
1355
1362
|
outputDir,
|
|
1356
1363
|
projectRoot: workspaceRoot || projectRoot,
|
|
1357
1364
|
workspaceMap,
|
|
@@ -1395,4 +1402,4 @@ async function analyzeBundle(entries, mastraEntry, { outputDir, projectRoot, pla
|
|
|
1395
1402
|
//#endregion
|
|
1396
1403
|
export { collectTransitiveWorkspaceDependencies as a, aliasHono as i, checkConfigExport as n, getWorkspaceInformation as o, bundleExternals as r, packWorkspaceDependencies as s, analyzeBundle as t };
|
|
1397
1404
|
|
|
1398
|
-
//# sourceMappingURL=analyze-
|
|
1405
|
+
//# sourceMappingURL=analyze-CNv6Qdaz.js.map
|