normalize-pkg
normalize-pkg copied to clipboard
repository normalizer
This block is causing the repository value to be overwritten when it's already a string, which becomes an issue when the project name is scoped for use in npm.
Locally, I added a check to see if val is a string like the other if blocks and it seems to work. I'll submit a PR with tests when I have a chance but wanted to open this issue as a reminder.
k, as long as the value is always the correct type. Meaning it shouldn't be sometimes a string, and sometimes an object, etc.