module: fix check for package.json at volume root
This patch converts the "read package scope" algorithm's while loop into a do-while loop enabling items at the filesystem root dir to be considered within the scope of a sibling package.json also at the filesystem root dir. Fixes: https://github.com/nodejs/node/issues/33438 Co-authored-by:Guy Bedford <guybedford@gmail.com> PR-URL: https://github.com/nodejs/node/pull/34595 Reviewed-By:
Jan Krems <jan.krems@gmail.com> Reviewed-By:
Mary Marchini <oss@mmarchini.me>
parent
ab7d2ac9
Please register or sign in to comment