We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97c65f5 commit 3f07cf6Copy full SHA for 3f07cf6
1 file changed
bundler.config.ts
@@ -1,5 +1,20 @@
1
import { defineConfig } from './src/config.js'
2
+import { version } from './package.json'
3
4
export default defineConfig({
- 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
+ ],
20
})
0 commit comments