Lookup prettier more leniently (#14403)

Do not require the `prettier` dependency name to be in package.json's
[dev]Dependencies, instead just checking the `node_modules` contents.

Release Notes:

- Improved `prettier` detection to pick up its installation from
transitive dependencies
([12731](https://github.com/zed-industries/zed/issues/12731)
88c5eb550eKirill Bulatov committed on 7/13/2024, 6:59:14 PM· committed by GitHubparente5dc6be
1 file changedLine totals unavailable