fix npub bug with undefined publishConfig
set ~ for 0.x.x and ^ for 1+.x.x in depedencies