compiling code and adding build script to json package