Files
bun.sh/test/cli
Claude Bot 63595f35bc fix: correct dependency chain structure in JSON output
BREAKING FIX: JSON now shows correct dependency chain from root to target

Previously showed target package with its dependents as children (backwards).
Now correctly shows the path from root package to the target package.

Example for 'bun why body-parser' in a project with express:
{
  "name": "my-project",
  "dependencies": {
    "express": {
      "from": "^4.18.0",  // Actual spec from package.json
      "dependencies": {
        "body-parser": {
          "from": "1.20.3",  // Actual spec from express's package.json
          ...
        }
      }
    }
  }
}

Changes:
- Shows dependency chain from root to target (not backwards)
- "from" field now shows actual dependency specifier from lockfile
- All data comes from lockfile (no package.json reads needed)
- Works for both direct and nested dependencies

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 08:05:46 +00:00
..
2025-05-24 13:36:51 -07:00
2025-05-16 23:40:56 -07:00