Remove the postdeploy command since it wouldn't run. Move the code to javascript.