Generate api.json during prepublish
1.0.2