normalize-pkg icon indicating copy to clipboard operation
normalize-pkg copied to clipboard

repository normalizer

Open doowb opened this issue 8 years ago • 1 comments

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.

doowb avatar Sep 12 '17 22:09 doowb

k, as long as the value is always the correct type. Meaning it shouldn't be sometimes a string, and sometimes an object, etc.

jonschlinkert avatar Sep 12 '17 22:09 jonschlinkert