Is there a way to hook an extra script that will look into an specific JSON file and create an enum from it.
I need to recreate it after each change of the JSON. Usually I would use an npm watch for it but I want to hook it into the regular ionic/angular build, so if I run ionic serve or ionic build it should be called.
Is there a way to do this? I have found info about pre and post npm scripts but they just work for one call of scripts from the package.json
Writing an pre/post script after the angular build script "build": "ng build", does nothing while on serve mode.