egoist / egoist/tsup

Non-deterministic typescript definitions

Open
#481 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

Sometimes when `tsup` recompiles it generates a valid, but different version of the `.d.ts` file.

You can see an example diff here: https://gist.github.com/vpontis/bc4ae5c8f8ef6ba87026952dd21e5c6c

These two `.d.ts` files are semantically equivalent but `git` thinks they are different because the content in the file is getting reorganized.

Is this a known issue somewhere in the `tsup` pipeline? Is there any way I can avoid this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.