added prepublish script for compile
Merge branch 'build-prepublish' into develop