-
|
I'm using I haven't noticed any issue so far with that setup and turbo, but I wonder what is turbo's |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Here is the script: https://github.com/vercel/turbo/blob/main/packages/turbo/install.js We use the postinstall to provide a bit of extra insurance due to the installation method of turbo. Because we install platform specific binaries via optional dependencies (https://github.com/vercel/turbo/blob/main/packages/turbo/package.json#L21-L28), the postinstall script helps us validate that this process worked as expected, and handles some common error cases. As you noted, it should work fine without this script as long as you don't fall into any of the corner cases (you're allowing optional dependencies and running on a supported OS) |
Beta Was this translation helpful? Give feedback.
Here is the script: https://github.com/vercel/turbo/blob/main/packages/turbo/install.js
We use the postinstall to provide a bit of extra insurance due to the installation method of turbo. Because we install platform specific binaries via optional dependencies (https://github.com/vercel/turbo/blob/main/packages/turbo/package.json#L21-L28), the postinstall script helps us validate that this process worked as expected, and handles some common error cases.
As you noted, it should work fine without this script as long as you don't fall into any of the corner cases (you're allowing optional dependencies and running on a supported OS)