Allow set.env plugin to return an empty object#81
Allow set.env plugin to return an empty object#81lpsinger wants to merge 1 commit intoarchitect:mainfrom
Conversation
|
Ok, but why? |
Because I have authored a plugin whose |
|
These semantics are deliberate and will impact consumers of this module downstream – in other words, this PR is a breaking change. A far simpler solution might be to |
Do you mean, in my plugin? That would still require a code change in @architect/inventory because the return value |
|
Got it, so the feature request is to enable |
It would meet our needs if Architect allowed a return value from
No, but I don't think that this is a breaking change. It doesn't alter the API, and I don't see how any plugin in the wild could already be depending upon |
|
Returning an empty object would be a breaking change if consumers of the env var property assume it has always properties, which it currently would. Returning |
Isn't Architect itself the only consumer of the return value of the plugin entry points? |
|
Everything in Architect is published as a module, so we make the assumption that developers may use them outside CLI workflows. But perhaps more importantly: it's reasonable to assume people will write tests around their Arc plugins. |
Thank you for helping out! ✨
We really appreciate your commitment to improving Architect
To maintain a high standard of quality in our releases, before merging every pull request we ask that you've completed the following:
mainnpm itfrom the repo root)readme.md, help docs, inline docs & comments, etc.)changelog.mdPlease also be sure to completed the CLA (if you haven't already).
Learn more about contributing to Architect here.
Thanks again!