egoist / egoist/tsup

Add Support to Typescript V7

Open
#1,408 1 comment 5 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

tsup's DTS generation (via `rollup-plugin-dts`) crashes when using TypeScript 7.0.x. This appears to be caused by TypeScript 7.0 shipping without a stable programmatic/compiler API (the API is expected to land in 7.1 — see [Microsoft's TS 7.0 announcement](https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/)).

## Reproduction

Minimal setup:
- `typescript`: `7.0.2`
- `tsup`: `8.5.1`
- Config with `dts: true` (or default entry that triggers dts generation)

Run:
```bash
tsup
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the crash with TypeScript 7.0.2, tsup 8.5.1, and dts generation enabled, using the minimal setup described in the issue. Inspect tsup's DTS path and its rollup-plugin-dts integration, then verify that running `tsup` completes successfully and generates declarations with TypeScript 7.0.x.

Written by the indexing model from the issue text.

Assessment

Tech stack
rollup, typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.