diff --git a/.husky/post-merge b/.husky/post-merge index 72c61e883..44490b52c 100755 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -1,6 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -git submodule update --init --recursive - git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD --exit-code -- package-lock.json > /dev/null 2>&1 || echo "📦 package-lock.json changed. Running npm install..." && npm install diff --git a/package.json b/package.json index a48d1718a..20ba90995 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "dev:ssv": "scripts/ssv/dev -n \"$npm_config_nodes\"", "docgen": "npm run docgen --workspace @casimir/ethereum", "lint": "eslint --ext .vue,.ts ./ --fix", - "postinstall": "git submodule update --init --recursive && npm exec --workspaces npm run build", + "postinstall": "npm exec --workspaces npm run build", + "preinstall": "git submodule update --init --recursive", "prepare": "husky install", "test": "echo \"Error: no test specified\" && exit 1", "test:actions": "npx esno -r dotenv/config scripts/actions/test.ts --workflow \"$npm_config_workflow\"", diff --git a/scripts/ethereum/dev.ts b/scripts/ethereum/dev.ts index 462b90808..dc048669b 100644 --- a/scripts/ethereum/dev.ts +++ b/scripts/ethereum/dev.ts @@ -12,9 +12,6 @@ import { getSecret } from '@casimir/aws-helpers' * - https://hardhat.org/hardhat-network/docs/overview */ void async function () { - // Fetch remote submodule code - $`git submodule update --init --recursive` - // Get shared seed const seed = await getSecret('consensus-networks-bip39-seed') process.env.BIP39_SEED = seed diff --git a/scripts/ethereum/test.ts b/scripts/ethereum/test.ts index 51f0923b3..488c28392 100755 --- a/scripts/ethereum/test.ts +++ b/scripts/ethereum/test.ts @@ -11,9 +11,6 @@ import { getSecret } from '@casimir/aws-helpers' * - https://hardhat.org/hardhat-network/docs/overview */ void async function () { - // Fetch remote submodule code - $`git submodule update --init --recursive` - const seed = await getSecret('consensus-networks-bip39-seed') process.env.BIP39_SEED = seed echo(chalk.bgBlackBright('Your mnemonic is ') + chalk.bgBlue(seed)) diff --git a/scripts/ledger/emulate b/scripts/ledger/emulate index 7c605c676..49b9f1088 100755 --- a/scripts/ledger/emulate +++ b/scripts/ledger/emulate @@ -36,9 +36,6 @@ if [ -z "$app" ]; then echo "app is not set, using default app $app" fi -# Fetch submodules for speculos and ledger apps -git submodule update --init --recursive - resource_path=scripts/ledger/resources if [ ! -f "$resource_path/speculos/apps/$app.elf" ]; then diff --git a/scripts/local/dev.ts b/scripts/local/dev.ts index 190892de7..6b4c2abf5 100644 --- a/scripts/local/dev.ts +++ b/scripts/local/dev.ts @@ -42,8 +42,6 @@ const Stage = pascalCase(stage as string) * --external: externalize all rpc urls (optional, i.e., --external=true) */ void async function () { - /** Fetch remote submodule code */ - $`git submodule update --init --recursive` /** Set project-wide variables */ process.env.PROJECT = project diff --git a/scripts/trezor/emulate b/scripts/trezor/emulate index 4e15144f4..c72c7b600 100755 --- a/scripts/trezor/emulate +++ b/scripts/trezor/emulate @@ -12,9 +12,6 @@ else echo "PROFILE is not set, using default profile '$PROFILE'" fi -# Fetch submodules for trezor apps -git submodule update --init --recursive - # Todo programmatically launch emulator with seed # # Get the bip39 seed from AWS # seed_secret_id=consensus-networks-bip39-seed