Generate api.json during prepublish
2.0.8