Generate api.json before publishing
0.6.0