I am currently stuck on how to create an NPM package out of a project of mine which uses Vuex.
There are plenty of tutorials and repositories on how to publish Vue comopnents but how do I register my Vuex module into someone elses Vuex store?
My code is neatly placed into a Vuex store module, so I pretty much just need to register in into the store of whoever installed my package.
I guess there needs to be a check if Vuex is actually set up and then somehow make sure everything is imported and the store.modules property gets updated or something?
I feel like I have no idea where to start, has this been done before or can someone perhaps link me to an example repository for this usecase?
Thanks for reading, cheers.