-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbuild.config.ts
More file actions
44 lines (42 loc) · 886 Bytes
/
build.config.ts
File metadata and controls
44 lines (42 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { readFileSync } from "node:fs";
import { defineBuildConfig } from "unbuild";
const pkg = JSON.parse(readFileSync("./package.json", "utf-8"));
export default defineBuildConfig({
entries: [
"src/index.ts",
"src/storage/memory.ts",
"src/storage/redis.ts",
"src/storage/drizzle.ts",
"src/storage/prisma.ts",
"src/storage/kysely.ts",
"src/drizzle/schema.ts",
],
declaration: true,
clean: true,
rollup: {
esbuild: {
minify: true,
treeShaking: true,
},
output: {
banner: `/*!
* ${pkg.name} v${pkg.version}
* ${pkg.description}
* © ${new Date().getFullYear()} "Issa Nassar" <issa@databuddy.cc>
* Released under the ${pkg.license} License
* ${pkg.homepage}
*/`,
},
},
externals: [
"drizzle-orm",
"drizzle-orm/pg-core",
"drizzle-orm/node-postgres",
"@prisma/client",
"ioredis",
"kysely",
"pg",
"nanoid",
"typebox",
],
});