microsoft / dts-gen

dts-gen creates starter TypeScript definition files for any module or library.
MIT License
2.43k stars 101 forks source link

Usage with private npm registry #162

Closed michellocana closed 4 years ago

michellocana commented 4 years ago

We have a private npm registry in our company, and i tried to generate types of some of our packages, but it seems that the registry url is hard-coded here to always search in the npm registry. I think it would be a cool feature to pass an argument like --registry to tell the lib where to search.

Let me know if that make sense, and if it's as simple as it seems to implement, i can help with that :)

michellocana commented 4 years ago

Well, i think i was using the cli wrong 😅, i figured out how to solve this problem

harrisjose commented 4 years ago

I think I'm doing the same thing so mind telling what was wrong? @michellocana

michellocana commented 4 years ago

@harrisjose installing the package globally worked out for me, even with private registry packages