Auto generate cause-types.json during compile.