SassDoc / sassdoc

Release the docs!
http://sassdoc.com
MIT License
1.41k stars 56 forks source link

Use read-package-json (npm) to read package.json #512

Open MathiasSM opened 7 years ago

MathiasSM commented 7 years ago

I think the package.json is being required directly, so that means stuff npm does automatically like parsing people objects like:

{
  "author": "Mathias San Miguel <mathias@example.com> (mathias.example.com)"
}

into

{
  "author": {
    "name": "Mathias San Miguel",
    "email": "mathias@example.com",
    "url": "mathias.example.com"
  }
}

is not happening, even when it'd be more intuitive to make your package.json parsing follow the standard npm parsing, so that theme developer could use the file as it is (like it's supposed to).

MathiasSM commented 7 years ago

My bad, it's the npm package normalize-package-data that specifically does those things (that package is required and used by read-package-json, so what I said still applies!)