-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsdown.config.ts
More file actions
28 lines (27 loc) · 706 Bytes
/
tsdown.config.ts
File metadata and controls
28 lines (27 loc) · 706 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
import { defineConfig } from 'tsdown'
import packagejson from './package.json' with { type: 'json' }
export default defineConfig({
entry: [
'src/index.ts',
'src/adapters/create/index.ts',
'src/adapters/drizzle/index.ts',
'src/adapters/kysely/index.ts',
'src/adapters/memory/index.ts',
'src/adapters/mongodb/index.ts',
'src/adapters/prisma/index.ts',
'src/types/index.ts',
'src/db/index.ts',
'src/utils/index.ts',
],
format: 'esm',
treeshake: true,
target: 'es2022',
fixedExtension: true,
clean: true,
dts: true,
platform: 'node',
external: [
...Object.keys(packagejson.devDependencies),
...Object.keys(packagejson.dependencies),
],
})