Maybe create a `preinstall `script in `shared `that does that, and reuse the script on the packages that use `shared`.
Maybe create a
preinstallscript insharedthat does that, and reuse the script on the packages that useshared.