replace some bash with npm scripts