a simple repository would be an ideal solution, but if you use the Add-on Builder Helper , this is not ideal, because the repository gets every time you make changes to the code and restart the application. Thus, it is impossible to verify that your code is working correctly without creating an extension and testing it in another browser profile, which makes it difficult to configure the code and make minor changes.
Instead, I used the simple-prefs module, which really persisted through reboots:
var prefs = require("simple-prefs").prefs;
The disadvantage is that everything needs to be serialized as a string, so the development overhead is a bit more complicated, but once you set it up, you can more easily test your code without creating XPI for every minor change, something that should help you avoid add-on builder.
source share