27 lines
483 B
TypeScript
27 lines
483 B
TypeScript
import { defineConfig } from "tsup";
|
|
|
|
export default defineConfig({
|
|
tsconfig: "tsconfig.json",
|
|
entry: {
|
|
"react/index": "react/index.ts",
|
|
"server/index": "server/index.ts"
|
|
},
|
|
format: ["esm"],
|
|
dts: true,
|
|
sourcemap: true,
|
|
clean: true,
|
|
outDir: "dist",
|
|
external: [
|
|
"@auth/express",
|
|
"@auth/prisma-adapter",
|
|
"@chakra-ui/react",
|
|
"@prisma/client",
|
|
"express",
|
|
"react",
|
|
"react-dom",
|
|
"react-icons",
|
|
"react-router",
|
|
"zod"
|
|
]
|
|
});
|