Skip to content
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

Generate TypeScript declaration maps #15

Open
sushengloong opened this issue Jan 13, 2024 · 1 comment
Open

Generate TypeScript declaration maps #15

sushengloong opened this issue Jan 13, 2024 · 1 comment

Comments

@sushengloong
Copy link

I'd really like to add support for declaration maps so that in my VS Code I can use Go-to-Definition to navigate to the .ts files instead of .mts or .mjs files.

What I've tried to do:

  1. Add "declaration": true and "declarationMap": true to packages/openai-partial-stream/tsconfig.json.
  2. Run npm run build.
  3. Still, no .map files were generated.

Since the npm run build uses tsup, I suspect it's related to egoist/tsup#488 and apparently this remains unsupported. I'd love to hear your thoughts. I'm happy to help.

@st3w4r
Copy link
Owner

st3w4r commented Jan 13, 2024

Hi, thanks for your suggestion and for trying to fix this. I'm all for making the developer experience better. I need to check if tsup supports this or not, but seems based on the open issue your shared about tsup it doesn't, I'll have to look into what we can do about it.

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

No branches or pull requests

2 participants