Generate api.json during prepublish
3.4.2