Hi
I want to make a package which you can add other packages to. Say you install the base package and then two sub packages, what is the best method to implement this?
Maybe I want to run a function with every sub package that is installed or something. Is there a good way of doing this?
I’m thinking the base package would declare Base = {}; Base.plugins = {};
and then the sub package could just latch on to that with Base.plugins.plugin = {};
or something but I’m not sure it’s the best way to do it