-
Notifications
You must be signed in to change notification settings - Fork 27
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
#531
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. We still need to execute `yarn run postinstall` in couple of places though - we need to do that after `yarn upgrade` commands, as `yarn upgrade` does not execute the postinstall scripts in the main project (and we have a script in the `threshold-network/token-dashboard` project that we need to execute).
Preview uploaded to https://preview.dashboard.test.threshold.network/no-longer-ignore-scripts/index.html. |
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. Ref: threshold-network/solidity-contracts#142 threshold-network/solidity-contracts#143 threshold-network/token-dashboard#531
Why are we removing |
When As we have a dependency to And one more explanation, regarding the change removing |
Ok, thanks for the explanation. It makes sense. |
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 dependencies. 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.We still need to execute
yarn run postinstall
in couple of places though - we need to do that afteryarn upgrade
commands, asyarn upgrade
does not execute the postinstall scripts in the main project (and we have a script in thethreshold-network/token-dashboard
project that we need to execute).Ref:
threshold-network/solidity-contracts#142
threshold-network/solidity-contracts#143
keep-network/tbtc-v2#629