Added pkgs support to the npm module/state