You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yarn's documentation recommends not to use postinstall scripts. In theory this is probably a good idea but in practice it's not clear how to avoid it.
In our case, the postinstall script is going to build some assets such as script files and JSON indexes, compile JSX scripts, run electron-rebuild and more. Yarn documentation covers only very easy cases like the Open Collective postinstall scripts (that could be removed from the doc actually since they don't recommend this anymore), or converting binary files to WebAssembly.
So the only advice that Yarn has to offer is to build native packages using WebAssembly, but that ignores the vast majority of postinstall scripts which often do a lot more. Is there any official advise about this?
This discussion was converted from issue #3852 on December 09, 2021 11:42.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Yarn's documentation recommends not to use postinstall scripts. In theory this is probably a good idea but in practice it's not clear how to avoid it.
In our case, the postinstall script is going to build some assets such as script files and JSON indexes, compile JSX scripts, run electron-rebuild and more. Yarn documentation covers only very easy cases like the Open Collective postinstall scripts (that could be removed from the doc actually since they don't recommend this anymore), or converting binary files to WebAssembly.
So the only advice that Yarn has to offer is to build native packages using WebAssembly, but that ignores the vast majority of postinstall scripts which often do a lot more. Is there any official advise about this?
Beta Was this translation helpful? Give feedback.
All reactions