[dist] Remove `publishConfig`
[minor] Make variables static