Skip to content

Commit 0ece342

Browse files
fix(build): ignore the agent-bundle package root for the inlined launch-env module in bundle evidence
1 parent a060090 commit 0ece342

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎packages/agent-bundle/src/build/cli-bins.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export const planCliBinsSurface = (
196196
}),
197197
})));
198198
},
199-
ignoredSourcePaths: [runtimeIgnoredRoot(cliEntryRuntimePath()), launchEnvRuntimePath()],
199+
ignoredSourcePaths: [runtimeIgnoredRoot(cliEntryRuntimePath()), runtimeIgnoredRoot(launchEnvRuntimePath())],
200200
logLevel: 'error',
201201
};
202202
};

‎packages/agent-bundle/src/build/entries.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,9 @@ export const planMcpEntriesSurface = async (
481481
: {
482482
ignoredSourcePaths: [
483483
...(runtimeShell === undefined ? [] : [runtimeShell]),
484-
...(launchEnvRuntime === undefined ? [] : [launchEnvRuntime]),
484+
// The package root, not the file: from the built package the
485+
// module shares chunks with its siblings under `dist/`.
486+
...(launchEnvRuntime === undefined ? [] : [runtimeIgnoredRoot(launchEnvRuntime)]),
485487
...(eventIpcRuntime === undefined ? [] : [runtimeIgnoredRoot(eventIpcRuntime)]),
486488
...(serverRuntime === undefined ? [] : [runtimeIgnoredRoot(serverRuntime)]),
487489
],
@@ -614,7 +616,7 @@ export const planHooksSurface = (
614616
...(workerEntry === undefined ? [] : [workerEntry]),
615617
],
616618
ignoredSourcePaths: [
617-
launchEnvRuntime,
619+
runtimeIgnoredRoot(launchEnvRuntime),
618620
...(eventIpcRuntime === undefined ? [] : [runtimeIgnoredRoot(eventIpcRuntime)]),
619621
],
620622
finish: async (evidence) => {

0 commit comments

Comments
 (0)