-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsup.config.ts
More file actions
33 lines (32 loc) · 1.09 KB
/
Copy pathtsup.config.ts
File metadata and controls
33 lines (32 loc) · 1.09 KB
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
import { defineConfig } from 'tsup';
export default defineConfig({
entry: {
button: 'src/stories/button/index.ts',
card: 'src/stories/card/index.ts',
checkbox: 'src/stories/checkbox/index.ts',
combobox: 'src/stories/combobox/index.ts',
dialog: 'src/stories/dialog/index.ts',
drawer: 'src/stories/drawer/index.ts',
field: 'src/stories/field/index.ts',
icon: 'src/stories/icon/index.ts',
input: 'src/stories/input/index.ts',
pagination: 'src/stories/pagination/index.ts',
select: 'src/stories/select/index.ts',
table: 'src/stories/table/index.ts',
tabs: 'src/stories/tabs/index.ts',
text: 'src/stories/text/index.ts',
textarea: 'src/stories/textarea/index.ts',
theme: 'src/stories/theme/index.ts',
tilt: 'src/stories/tilt/index.ts',
utility: 'src/stories/utility/index.ts',
},
splitting: false,
clean: true,
external: ['react'],
dts: true,
outDir: 'dist',
format: ['cjs', 'esm'],
loader: {
'.module.scss': 'file',
},
});