add some npm script hooks