Skip to content

Tsdown doesn't bundle types for pg #306

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
Zombobot1 opened this issue Jun 7, 2025 · 3 comments
Open

Tsdown doesn't bundle types for pg #306

Zombobot1 opened this issue Jun 7, 2025 · 3 comments
Labels

Comments

@Zombobot1
Copy link

Reproduction link or steps

probably related to #303 but has different results on https://arethetypeswrong.github.io/?p=%40types%2Fpg%408.15.4

Reproduction branch: https://github.com/Zombobot1/tsdown-trcp-repro/tree/pg-bundling-issue

  1. clone https://github.com/Zombobot1/tsdown-trcp-repro
  2. checkout pg-bundling-issue
  3. pnpm i
  4. pnpm dev
  5. index.d.ts contains import from "pg"

What is expected?

pg types are bundled

What is actually happening?

the bundle contains import form pg

Any additional comments?

No response

@sxzz
Copy link
Member

sxzz commented Jun 7, 2025

Why create a new issue related to #303?

@sxzz sxzz added dts and removed pending triage labels Jun 7, 2025
@Zombobot1
Copy link
Author

pg is 10 times more popular than trpc server and its analysis results on arethetypeswrong are different. I created a separate issue so people who face the same problems should be able to find it easier

@sxzz
Copy link
Member

sxzz commented Jun 7, 2025

Oh I missed pg difference 🤥

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

No branches or pull requests

2 participants