Co-authored-by: Soumil Rathi <soumilrathi@gmail.com> Co-authored-by: Saket Aryan <saketaryan2002@gmail.com> Co-authored-by: chaithanyak42 <chaithanya.kumar42a@gmail.com> Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai>
43 lines
732 B
TypeScript
43 lines
732 B
TypeScript
import { defineConfig } from "tsup";
|
|
|
|
const external = [
|
|
"openai",
|
|
"@anthropic-ai/sdk",
|
|
"groq-sdk",
|
|
"uuid",
|
|
"pg",
|
|
"zod",
|
|
"better-sqlite3",
|
|
"@qdrant/js-client-rest",
|
|
"redis",
|
|
"ollama",
|
|
"@google/genai",
|
|
"@mistralai/mistralai",
|
|
"@supabase/supabase-js",
|
|
"@azure/search-documents",
|
|
"@azure/identity",
|
|
"cloudflare",
|
|
"@cloudflare/workers-types",
|
|
"@langchain/core",
|
|
"compromise",
|
|
"natural",
|
|
];
|
|
|
|
export default defineConfig([
|
|
{
|
|
entry: ["src/client/index.ts"],
|
|
format: ["cjs", "esm"],
|
|
dts: true,
|
|
sourcemap: true,
|
|
external,
|
|
},
|
|
{
|
|
entry: ["src/oss/src/index.ts"],
|
|
outDir: "dist/oss",
|
|
format: ["cjs", "esm"],
|
|
dts: true,
|
|
sourcemap: true,
|
|
external,
|
|
},
|
|
]);
|