-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't run postinstall script separately from yarn install #629
Conversation
Background: Previously we've been running postinstall script in a separate step from the `yarn install` command. We've been doing that as a workaround for a problem we had with the postinstall script in the `@threshold-network/solidity-contracts` package (the script in that package often randomly failed). Running `yarn upgrade` with `--ignore-scripts` flag prevented the execution of postinstall script in the main project and its depandencies. And running `yarn run postinstall` after did execute the postinstall script in the main project. The change: Recently we have refactored the `@threshold-network/solidity-contracts` project and got rid of the problematic script. We can go back to executing `yarn install` without the `--ignore-scripts` flag.
Actually, now I have second thoughts about removing it. It was not running |
The postinstall must be executed as |
Well, I don't fully agree :) You're right that we need to run postinstall in order to execute The reason I wanted to go back to executing all postinstall scripts, even in the subdependencies is because we got rid of the misbehaving
So generally, I agree that my change was premature and should be reverted - I just wanted to clarify for future us what exactly was the reasoning for running the install with the |
) This reverts commit 2c7c63e. See the following comment for a full description #629 (comment)
Nope :) the problem with |
Idle observer here, but that info is captured neither in a code comment nor in the commit message that introduced the separate post install call (5fbdc20). Probably worth fixing that given the complexity of the reason :) |
Background:
Previously we've been running postinstall script in a separate step from the
yarn install
command. We've been doing that as a workaround for a problem we had with the postinstall script in the@threshold-network/solidity-contracts
package (the script in that package often randomly failed). Runningyarn upgrade
with--ignore-scripts
flag prevented the execution of postinstall script in the main project and its depandencies. And runningyarn run postinstall
after did execute the postinstall script in the main project.The change:
Recently we have refactored the
@threshold-network/solidity-contracts
project and got rid of the problematic script. We can go back to executingyarn install
without the--ignore-scripts
flag.Ref:
threshold-network/solidity-contracts#142
threshold-network/solidity-contracts#143
threshold-network/token-dashboard#531