Files
zeekay 7200114387 Merge upstream/dev (52 commits) + sweep yarn → pnpm
Upstream merge brings 52 commits from safe-global/safe-wallet-monorepo
into the luxfi/safe-wallet@dev fork.

Conflicts resolved:
- yarn.lock: deleted (we are on pnpm)
- apps/web/package.json: kept pnpm version + brand build scripts
  (build:safe / build:lux / build:hanzo) plus upstream's new
  generate-version.mjs step
- apps/mobile/.../Signer/appKit.ts: took upstream's import pattern
  for shared/projectId, shared/metadata, shared/mmkvStorageAdapter

Yarn sweep applied to 42 files (docs, github-actions, workflows, AGENTS,
specs, codemods, scripts, READMEs). Net result: zero yarn-* command
references anywhere outside node_modules.

  ❯ pnpm is the law in this fork. No yarn.
2026-05-27 03:25:16 -07:00

44 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
set -eu
# Store the initial git status
initial_status=$(git status --porcelain)
# Run the lint command
pnpm run lint --fix
# Store the status after running lint
post_lint_status=$(git status --porcelain)
# Compare the initial and post-lint statuses
if [ "$initial_status" != "$post_lint_status" ]; then
echo "===================================="
echo "Linters gonna lint!"
echo "Linting made changes. Please commit these changes before pushing or push with --no-verify flag to omit this check."
echo "===================================="
exit 1
fi
# Run type-check on all workspaces
if ! pnpm run type-check; then
echo "===================================="
echo "Type check failed. Please fix the type errors before pushing or push with --no-verify flag to omit this check."
echo "===================================="
exit 1
fi
# Check if the user wants to run tests on push
if [ "${RUN_TESTS_ON_PUSH:-}" == "true" ]; then
echo "Running tests..."
if ! pnpm test; then
echo "===================================="
echo "Tests failed. Guess they need more 'exercise'!"
echo "Please fix the issues before pushing or push with --no-verify flag to omit this check."
echo "===================================="
exit 1
fi
fi
# All goooood in safe's land!
exit 0