broccolijs / broccoli

Browser compilation library – an asset pipeline for applications that run in the browser

Home Page:https://broccoli.build

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature] get plugin runtime dependencies

gabrielcsapo opened this issue · 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.