fix(pm) Set 'type' to 'library', fix ns target