Optimize the situation where the cjs package contains an esm loader, some times the cjs package can has a dir has a independent package.json also has type: module attribute in package.json.
In this case, when the package json name and version do not exist, it can also be regarded as a valid package.json.
Version
Details
Optimize the situation where the cjs package contains an esm loader, some times the cjs package can has a dir has a independent package.json also has type: module attribute in package.json.
In this case, when the package json name and version do not exist, it can also be regarded as a valid package.json.