mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix: resolve plugin and conformance tests from source
This commit is contained in:
parent
e26afb63a4
commit
e7b47bd7de
2 changed files with 4 additions and 2 deletions
|
|
@ -49,5 +49,7 @@ export function createPresentationFacetLoaders(data: JsonValue): readonly FacetL
|
|||
}
|
||||
|
||||
function resolvePluginExternal(specifier: string): string | undefined {
|
||||
return specifier === PI_PLUGIN_API ? import.meta.resolve(specifier) : undefined;
|
||||
if (specifier !== PI_PLUGIN_API) return undefined;
|
||||
const extension = import.meta.url.endsWith(".ts") ? "ts" : "js";
|
||||
return new URL(`../plugin.${extension}`, import.meta.url).href;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ export default defineConfig({
|
|||
alias: [
|
||||
{ find: /^@earendil-works\/pi-telemetry$/, replacement: telemetryIndex },
|
||||
{ find: /^@earendil-works\/pi-agent-core\/node$/, replacement: agentNode },
|
||||
{ find: /^@earendil-works\/pi-agent-core\/session\/testing$/, replacement: agentSessionTesting },
|
||||
{ find: /^@earendil-works\/pi-agent-core\/harness\/session\/testing$/, replacement: agentSessionTesting },
|
||||
{ find: /^@earendil-works\/pi-agent-core$/, replacement: agentIndex },
|
||||
{ find: /^@earendil-works\/pi-ai$/, replacement: aiIndex },
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue