chore(tooling): migrate 5chan to Yarn 4

This commit is contained in:
Tommaso Casaburi
2026-03-19 13:41:03 +08:00
parent e0fa1ca83f
commit f342179f1a
19 changed files with 20707 additions and 15307 deletions
+5 -5
View File
@@ -59,12 +59,12 @@ echo ""
failures=0
run_required_check "yarn build" yarn build || failures=1
run_required_check "yarn lint" yarn lint || failures=1
run_required_check "yarn type-check" yarn type-check || failures=1
run_required_check "corepack yarn build" corepack yarn build || failures=1
run_required_check "corepack yarn lint" corepack yarn lint || failures=1
run_required_check "corepack yarn type-check" corepack yarn type-check || failures=1
echo "=== yarn audit ==="
yarn audit 2>&1 || true
echo "=== corepack yarn npm audit ==="
corepack yarn npm audit 2>&1 || true
echo ""
cleanup_generated_dir build
+3 -3
View File
@@ -1,6 +1,6 @@
#!/bin/bash
# afterFileEdit hook: Run yarn install when package.json is changed
# afterFileEdit hook: Run Corepack-managed Yarn install when package.json is changed
# Receives JSON via stdin: {"file_path": "...", "edits": [...]}
input=$(cat)
@@ -13,8 +13,8 @@ fi
if [ "$file_path" = "package.json" ]; then
repo_root="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
cd "$repo_root" || exit 0
echo "package.json changed - running yarn install to update yarn.lock..."
yarn install
echo "package.json changed - running corepack yarn install to update yarn.lock..."
corepack yarn install
fi
exit 0