# original
{
  "version": "3",
  "packages": {
    "npm": {
      "@aa/pkg@2.1.5": {
        "integrity": "sha512-a1",
        "dependencies": {
          "othername": "@b/pkg@2.0.5"
        }
      },
      "@b/pkg@2.0.5": {
        "integrity": "sha512-b1",
        "dependencies": {}
      }
    }
  },
  "remote": {}
}

# output
{
  "version": "5",
  "npm": {
    "@aa/pkg@2.1.5": {
      "integrity": "sha512-a1",
      "optionalDependencies": [
        "othername@npm:@b/pkg@2.0.5"
      ],
      "optionalPeers": [
        "optionalpeerdep@npm:@z/pkg@1.0.0"
      ],
      "os": ["darwin", "linux", "win32"],
      "cpu": ["x86_64"],
      "scripts": true,
      "bin": true,
      "tarball": "https://fake-registry.com/a/pkg-2.1.5.tgz"
    },
    "@b/pkg@2.0.5": {
      "integrity": "sha512-b1",
      "deprecated": true,
      "tarball": "https://fake-registry.com/b/pkg-2.0.5.tgz"
    }
  }
}
