origami
origami copied to clipboard
Expose current release number to the component's own code
What
I'd like each component to expose its current version number in a new module generated dynamically during the release.
Why
Being able to access the current version number from code can make debugging easier but, specially, it can be essential for some monitoring use cases in which sending the component version number along with some tracking events can prove useful.
Supporting Examples
o-ads
is already exposing it through a getVersion
method by creating a version.js
file which exports the version number during its bespoke release process using release-it