diff --git a/package.json b/package.json index 94eb92bdf1c..1ef1b05dbc5 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,8 @@ "nuke": "./scripts/nuke.sh", "lint": "yarn packages --parallel run lint", "lint:contracts": "yarn workspace @unlock-protocol/smart-contracts lint:contracts --fix", - "postinstall": "husky install" + "postinstall": "husky install", + "check": "./scripts/health-check.sh" }, "repository": { "type": "git", @@ -97,4 +98,4 @@ "*.{js,ts,tsx,sol,css,md}": "prettier --write --plugin=prettier-plugin-solidity", "*.sol": "yarn lint:contracts --noPrompt" } -} +} \ No newline at end of file diff --git a/scripts/health-check.sh b/scripts/health-check.sh new file mode 100755 index 00000000000..3b50011da7f --- /dev/null +++ b/scripts/health-check.sh @@ -0,0 +1,14 @@ +#! /bin/sh + +# run all checks +yarn workspace @unlock-protocol/networks check:keys +yarn workspace @unlock-protocol/networks check:tokens +yarn workspace @unlock-protocol/networks check:hooks +yarn workspace @unlock-protocol/networks check:verify + +yarn workspace @unlock-protocol/subgraph check + +yarn workspace @unlock-protocol/governance check +yarn workspace @unlock-protocol/governance check:multisig +yarn workspace @unlock-protocol/governance check:cross-chain + \ No newline at end of file