Skip to content

Commit 3f07cf6

Browse files
committed
refactor: update main bundler config
1 parent 97c65f5 commit 3f07cf6

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

bundler.config.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
import { defineConfig } from './src/config.js'
2+
import { version } from './package.json'
23

34
export default defineConfig({
4-
entries: ['./src/index.ts', './src/utils/index.ts'],
5+
entries: [
6+
{ input: './src/index.ts', output: './dist/index.mjs' },
7+
{ input: './src/types/index.ts', output: './dist/types/index.d.ts' },
8+
{
9+
input: './src/bin/index.ts',
10+
output: './dist/bin/index.mjs',
11+
banner: '#!/usr/bin/env node',
12+
plugins: {
13+
replace: {
14+
preventAssignment: true,
15+
__version__: version,
16+
},
17+
},
18+
},
19+
],
520
})

0 commit comments

Comments
 (0)