Skip to content

Conversation

dominykas
Copy link
Member

@dominykas dominykas commented Feb 23, 2021

This is just to make things a teeny bit tidier (primarily for myself).

@dominykas dominykas marked this pull request as ready for review February 28, 2021 10:28
debug(`Dependent module: ${dependentPkgInfo.owner}/${dependentPkgInfo.name}`)

if (!checkPackageInPackageJSON(parentPkgJSON.name, dependentPkgJSON)) {
if (!context.checkPackageInPackageJSON(parentPkgJSON.name, dependentPkgJSON)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my only comment so far

The call to applyPatch, which takes place immediately after this check, carries out the same check

  if (!context.checkPackageInPackageJSON(module, packageJSON)) {}

but with less debug info, maybe just move this extra debug for errors into applyPatch.

Copy link
Member Author

@dominykas dominykas Mar 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good - but since we both have a PR open in the similar area - mind if we merge this and then maybe you can do it in yours or maybe we can follow this up with a separate PR after yours is merged?

@dominykas dominykas merged commit 5b031ee into pkgjs:main Mar 9, 2021
@dominykas dominykas deleted the cleanup branch March 9, 2021 15:33
@dominykas
Copy link
Member Author

🎉 This PR is included in version 0.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants