The "prepare" command is executed right after package installation.
The package should be built in "prepare" step (instead of running husky install which is not needed in that case anyway).
Not building the package in prepare means that if installed directly via github link: npm install https://github.com/zerodays/react-native-gen-ui the installation does not set up the package properly, making it unusable (unless the package is then built manually in the node_modules). This needs to be done because the /lib folder where the built files are inserted is added to .gitignore.
Current Behavior
Expected Behavior
Explanation
The "prepare" command is executed right after package installation. The package should be built in "prepare" step (instead of running husky install which is not needed in that case anyway). Not building the package in prepare means that if installed directly via github link:
npm install https://github.com/zerodays/react-native-gen-ui
the installation does not set up the package properly, making it unusable (unless the package is then built manually in the node_modules). This needs to be done because the /lib folder where the built files are inserted is added to .gitignore.