这是indexloc提供的服务,不要输入任何密码
Skip to content
Discussion options

You must be logged in to vote

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)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tknickman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants