Resolve package.json of plugins using node resolution algorithm (#18849)
Resolve package.json of plugins using node resolution algorithm (#18849)

* fix: Resolve package.json using node resolution algorithm

* chore: Updated snapshots for package.json resolution fix

* Revert "fix: Resolve package.json using node resolution algorithm"

This reverts commit 44284789c583483f90f0a8187017f939ea1d30c2.

* chore: Resolve the directory of the package.json directly

* chore: Reverted snapshots

gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby