Generate api.json during prepublish
3.0.2