openai-partial-stream icon indicating copy to clipboard operation
openai-partial-stream copied to clipboard

Generate TypeScript declaration maps

Open sushengloong opened this issue 1 year ago • 1 comments

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 https://github.com/egoist/tsup/issues/488 and apparently this remains unsupported. I'd love to hear your thoughts. I'm happy to help.

sushengloong avatar Jan 13 '24 07:01 sushengloong

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.

st3w4r avatar Jan 13 '24 19:01 st3w4r