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 installcommand. We've been doing that as a workaround for a problem we had with the postinstall script in the@threshold-network/solidity-contractspackage (the script in that package often randomly failed). Runningyarn upgradewith--ignore-scriptsflag prevented the execution of postinstall script in the main project and its depandencies. And runningyarn run postinstallafter did execute the postinstall script in the main project.The change:
Recently we have refactored the
@threshold-network/solidity-contractsproject and got rid of the problematic script. We can go back to executingyarn installwithout the--ignore-scriptsflag.Ref:
threshold-network/solidity-contracts#142
threshold-network/solidity-contracts#143
https://github.com/threshold-network/token-dashboard/pull/531