broccolijs/broccoli

[feature] get plugin runtime dependencies

gabrielcsapo opened this issue · 0 comments

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.