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
Biome currently has a postinstall script that checks if it's being installed in a supported platform. If it doesn't, it will log a warning to the console in some package managers. This check is also being done separately, every time the package is run.
Considering the nature of postinstall scripts, and the fact that some package managers such as pnpm are starting to block lifecycle scripts in dependencies by default, I propose removing this script to avoid duplicated processing and allow installations to be ever so slightly faster. If a user is using an unsupported platform, they will notice anyways as soon as they run biome (and actually they might not even notice it on postinstall right now because the postinstall script doesn't return an error code). It would also make biome installations less dependent on node
The text was updated successfully, but these errors were encountered:
Description
Biome currently has a postinstall script that checks if it's being installed in a supported platform. If it doesn't, it will log a warning to the console in some package managers. This check is also being done separately, every time the package is run.
Considering the nature of postinstall scripts, and the fact that some package managers such as pnpm are starting to block lifecycle scripts in dependencies by default, I propose removing this script to avoid duplicated processing and allow installations to be ever so slightly faster. If a user is using an unsupported platform, they will notice anyways as soon as they run biome (and actually they might not even notice it on postinstall right now because the postinstall script doesn't return an error code). It would also make biome installations less dependent on node
The text was updated successfully, but these errors were encountered: