add prePackage hook for go.ns.ps1 package

add prePackage hook for go.ns.ps1 package  to do some actions before package.