Describe the bug
After applying https://github.com/stacksjs/bun-plugin-dts-auto/issues/4#issuecomment-1666842824 This patch to solve the issues with the package all .d.ts files are created in the path where the files are.
Instead of creating all those .d.ts files in the outDir:
Not sure if this is the expected behaviour.
Reproduction
#!/usr/bin/env bun --bun
import dts from 'bun-plugin-dts-auto';
await Bun.build({
entrypoints: [
'./src/index.ts',
],
target: 'node',
sourcemap: "external",
minify: true,
root: './src',
outdir: './dist',
plugins: [
dts({
withSourceMap: true, // optional
}),
],
});
console.log('Build complete ✅');System Info
System:
OS: macOS 12.6.7
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 42.22 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 20.4.0 - ~/Library/Caches/fnm_multishells/45496_1690908490075/bin/node
npm: 9.7.2 - ~/Library/Caches/fnm_multishells/45496_1690908490075/bin/npm
pnpm: 8.6.6 - ~/.bun/bin/pnpm
Browsers:
Brave Browser: 115.1.56.14
Safari: 16.5.2
Bun: 0.7.3 (today's latest canary).Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.