Run script before app-scripts build

$ ionic cordova run ios

<some custom script here>

[12:34:56]  build prod started ...
...

Prior to v3 I used the npm scripts ionic:build and ionic:serve and just prepended the scripts I wanted to run, but it seems that isn’t a thing anymore. Is there an alternative which is just as simple?

Doesn’t package.json contain a definition of run build any more where you can add your own scripts?

I can add it if I want to, but it seems to be completely ignored. Previously if you removed it, it would completely skip the app-scripts compile and go straight to the cordova compile. Now if I remove it, it still does both, so I can only assume it’s no longer used. Kinda sucks if there’s no other way that is as easy :confused: