Skip to content

Commit fbed6ee

Browse files
committed
chore: wip
1 parent 3e8bb1e commit fbed6ee

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

build.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,10 @@ import { dts } from 'bun-plugin-dtsx'
22

33
// Build library
44
await Bun.build({
5-
entrypoints: ['src/index.ts'],
5+
entrypoints: ['src/index.ts', 'bin/cli.ts'],
66
target: 'bun',
7-
splitting: false,
7+
splitting: true,
88
minify: true,
99
outdir: './dist',
10-
naming: 'index.js',
1110
plugins: [dts()],
1211
})
13-
14-
// Build CLI
15-
await Bun.build({
16-
entrypoints: ['bin/cli.ts'],
17-
target: 'bun',
18-
splitting: false,
19-
minify: true,
20-
outdir: './dist/bin',
21-
naming: 'cli.js',
22-
})

0 commit comments

Comments
 (0)