refactor npackd_pkg type/provider into a normal package provider