rschristian / deptree

Visualize the dependency tree of a package or project
https://deptree.rschristian.dev
MIT License
17 stars 2 forks source link

Bug: NPM aliases do not work #2

Open rschristian opened 3 months ago

rschristian commented 3 months ago

This will fall over:

{
  "dependencies": {
    "react": "npm:@preact/compat"
  }
}

...as I naively merge key & val into a string with an @ separator:

https://github.com/rschristian/deptree/blob/3f4c8f981551ab66867a43923963ff696a166676/src/index.jsx#L47