egoist / egoist/tsup

Experimental DTS and Multi-entrypoint builds

Open
#1,046 3 comments 1 reaction 0 assignees View on GitHub
need repro
Dominant language
TypeScript
Stars
11.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

I really like the option to use @microsoft/api-extractor for DTS types. However, it doesn't work for all cases. It seems that it's currently only built for single entrypoint builds, see this section here:

https://api-extractor.com/pages/setup/configure_rollup/#an-important-limitation

And another thing, it doesn't seem to be copying the emitted dts files into the dist directory, even though it seems that it should be.

I also wanted to comment, Tsup is an incredible library and it's made building esm/cjs libs a breeze. Thank you very much for your work 🙏🏻

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked API Extractor limitation and reproduce a multi-entrypoint TypeScript build with DTS enabled. Trace where emitted declaration files are handled and whether they reach dist. Done means DTS builds support multiple entrypoints and the emitted declaration files are copied into dist.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.