这是indexloc提供的服务,不要输入任何密码
Skip to content

feat: add experimentalDts.only #1237

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aryaemami59
Copy link
Contributor

This PR:

  • Adds experimentalDts.only which is the equivalent of dts.only for experimentalDts.

Copy link

codesandbox bot commented Oct 19, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Oct 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tsup ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2025 1:42pm

Copy link

pkg-pr-new bot commented Oct 19, 2024

Open in StackBlitz

npm i https://pkg.pr.new/egoist/tsup@1237

commit: 706c58c

@ocavue
Copy link
Collaborator

ocavue commented Oct 26, 2024

I kind of don't want to add another experimental CLI option. To be honest, I'm not happy with the current @microsoft/api-extractor-based --experimental-dts implementation either, since it requires an ugly _tsup-dts-rollup.d.ts file. I'd prefer to find a more suitable solution before putting in extra effort on top of it.

@ocavue
Copy link
Collaborator

ocavue commented Oct 26, 2024

I really appreciate your recent work around dts. I just need some more thinking before merging them.

@aryaemami59
Copy link
Contributor Author

aryaemami59 commented Oct 26, 2024

@ocavue It's okay I understand. I'm trying to do whatever I can to help fix experimentalDts, it has a lot of potential, it just needs work, and I thought maybe this could be a start. I'm still going to try and see if I can remove _tsup-dts-rollup files, I think if We can accomplish that it'll solve a lot of issues related to experimentalDts.

@aryaemami59
Copy link
Contributor Author

aryaemami59 commented Nov 7, 2024

@ocavue Do you mind if I work on improving experimentalDts,maybe try to come up with an implementation that does away with _tsup-dts-rollup files?

@ocavue
Copy link
Collaborator

ocavue commented May 18, 2025

Hi @aryaemami59, sorry for the radio silence — I really appreciate your work on the DTS features in tsup. However, I’ve found that the underlying package, ·@microsoft/api-extractor·, isn’t ideal, due to its lack of support for multiple entry points output. tsdown and rolldown-plugin-dts seem to offer a much better solution for this use case. Could you try tsdown and see if it fit your requirements?

@aryaemami59
Copy link
Contributor Author

@ocavue Sure, I'll give it a shot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants