mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-05-23 12:56:55 +00:00
29 lines
990 B
TypeScript
29 lines
990 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
const aiSrcIndex = fileURLToPath(new URL("../ai/src/index.ts", import.meta.url));
|
|
const aiSrcOAuth = fileURLToPath(new URL("../ai/src/oauth.ts", import.meta.url));
|
|
const agentSrcIndex = fileURLToPath(new URL("../agent/src/index.ts", import.meta.url));
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
testTimeout: 30000,
|
|
server: {
|
|
deps: {
|
|
external: [/@silvia-odwyer\/photon-node/],
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: [
|
|
{ find: /^@earendil-works\/pi-ai$/, replacement: aiSrcIndex },
|
|
{ find: /^@earendil-works\/pi-ai\/oauth$/, replacement: aiSrcOAuth },
|
|
{ find: /^@earendil-works\/pi-agent-core$/, replacement: agentSrcIndex },
|
|
{ find: /^@mariozechner\/pi-ai$/, replacement: aiSrcIndex },
|
|
{ find: /^@mariozechner\/pi-ai\/oauth$/, replacement: aiSrcOAuth },
|
|
{ find: /^@mariozechner\/pi-agent-core$/, replacement: agentSrcIndex },
|
|
],
|
|
},
|
|
});
|