openai-partial-stream
openai-partial-stream copied to clipboard
Generate TypeScript declaration maps
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:
- Add
"declaration": trueand"declarationMap": trueto packages/openai-partial-stream/tsconfig.json. - Run
npm run build. - 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.
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.