Same base and project for multiple apps

thanks i think thats the right way!
i researched and found a lot but i need something at the very beginning of the building process - so i thought i need brefore prepare (https://stackoverflow.com/questions/33647483/cordova-hooks-order) <- but this seems to be only avaiable for cordova? for ionic i only found this for the package.json https://ionicframework.com/docs/cli/configuring.html#hooks (the other way i found was to create a .hook folder in the app).
i also have to replace the package.json for example cause of the app name, description and so on.
so is there any ionic step i can hook in to be executed before “everything” else gets executed? i also need at least one parameter which i need to add to the build process or gets requested via the script if this is possible where i can say what app design should be copied like here (Why does Ionic Cli remove command parameters passed to the cordova hooks?)

i did not found any compare between ionic and cordova hooks