Improve descriptor parse logic to prevent duplicate parse.
Rename pkg.json to package.json.