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 a141dcf commit 5bae612Copy full SHA for 5bae612
build.ts
@@ -6,13 +6,12 @@ console.log('Building...')
6
7
const result = await Bun.build({
8
entrypoints: ['src/index.ts'],
9
- outdir: './dist',
+ outdir: 'dist',
10
target: 'bun',
11
12
plugins: [
13
dts({
14
cwd: import.meta.dir,
15
- outdir: 'dist',
16
}),
17
],
18
})
src/index.ts
@@ -59,7 +59,11 @@ export function dts(options?: DtsOptions): BunPlugin {
59
60
async setup(build) {
61
const entrypoints = [...build.config.entrypoints].sort()
62
- await generate(entrypoints, options)
+
63
+ await generate(entrypoints, {
64
+ outdir: build.config.outdir,
65
+ ...options,
66
+ })
67
},
68
}
69
0 commit comments