-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: migrate to @npmcli/package-json #225
Conversation
} else if (pkg && typeof pkg.repository !== 'undefined' && pkg.repository.url) { | ||
repo = pkg.repository.url; | ||
} | ||
return repo; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering now if we can delete all this since @npmcli/package-json
does more normalization?
packageInstance = await PackageJson.load(opts.cwd, { | ||
create: true | ||
}); | ||
pkg = packageInstance.content; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if there was a better way, but to reduce the surface of this change I do this so we can just modify the object and leave all those other lines alone.
7d48a91
to
31cf513
Compare
31cf513
to
ce51568
Compare
@ljharb I am going to take the fact this is "comments" and they have been resolved it is not a blocking review. I will merge this up and publish sometime today if I don't hear a back. |
Passes all the tests, but frankly I am surprised this did not break more tests. I am worried this is a breaking change we just don't have tests for lol. Anyway, let me know what y'all think.