mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
chore(tooling): migrate 5chan to Yarn 4
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user