Skip to content

Commit 66a04c6

Browse files
authored
Don't run postinstall script separately from yarn install (#629)
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
2 parents 7f48d63 + 2c7c63e commit 66a04c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

monitoring/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ COPY package.json yarn.lock ./
2424
COPY tsconfig.json ./
2525
COPY src ./src
2626

27-
RUN yarn install --frozen-lockfile --ignore-scripts
28-
RUN yarn run postinstall
27+
RUN yarn install --frozen-lockfile
2928

3029
RUN yarn build
3130

0 commit comments

Comments
 (0)