Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] .d.ts missing for some entries #73

Open
unional opened this issue Jan 8, 2025 · 0 comments
Open

[Bug] .d.ts missing for some entries #73

unional opened this issue Jan 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@unional
Copy link

unional commented Jan 8, 2025

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce the behavior

When doing build, even though the dts is building the .d.ts files, they are missing in the /dist folder.

DTS Build start
DTS Build start
DTS Build start
DTS ⚡️ Build success in 1454ms
DTS dist/preview.d.ts 359.00 B
DTS ⚡️ Build success in 1499ms
DTS dist/vitest-plugin.d.ts 1.34 KB
DTS ⚡️ Build success in 2089ms
DTS dist/vitest-setup.d.ts 403.00 B
DTS dist/index.d.ts        703.00 B
DTS dist/matcher.d.ts      186.00 B

The problem is that the commonConfig set clean: true,
which causes the last DTS build wipe out the previous artifacts.

Setting it to clean: false would fix the issue.

Maybe this is a bug should be fixed in tsup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant