broccolijs / broccoli

Browser compilation library – an asset pipeline for applications that run in the browser
https://broccoli.build
MIT License
3.33k stars 217 forks source link

[feature] get plugin runtime dependencies #469

Open gabrielcsapo opened 4 years ago

gabrielcsapo commented 4 years ago

When debugging plugins it would be great to be able to understand the package.json dependencies.

I was trying to retrieve this data by looking at the instantiationStack but it is a little nuanced as the stack does not always contain the plugins parent directory at the same position.

If we could create at plugin creation time an attribute that contains the root directory of the plugin this would help resolve the location of package.json without any nuance.