Skip to content

Commit a7182a5

Browse files
authored
add streaming pairs for anthropic + chat completions (#175)
1 parent 3c22562 commit a7182a5

14 files changed

Lines changed: 29007 additions & 25 deletions

hooks/pre-commit

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ if [ -f "payloads/package.json" ]; then
3737

3838
# Run ESLint
3939
echo "🔍 Running ESLint..."
40-
if ! npm run lint; then
41-
echo "❌ ESLint found issues. Run 'npm run lint:fix' to fix automatically or fix manually."
40+
if ! pnpm run lint; then
41+
echo "❌ ESLint found issues. Run 'pnpm run lint:fix' to fix automatically or fix manually."
4242
exit 1
4343
fi
4444

4545
# Run Prettier check
4646
echo "🎨 Checking code formatting..."
47-
if ! npm run format:check; then
47+
if ! pnpm run format:check; then
4848
echo "❌ Code formatting issues found."
4949
echo "💡 Running Prettier to fix formatting..."
50-
npm run format
50+
pnpm run format
5151
cd ..
5252
echo "❌ Files were formatted by Prettier."
5353
echo "💡 Please re-add the formatted files and commit again:"
@@ -57,7 +57,7 @@ if [ -f "payloads/package.json" ]; then
5757

5858
# Run TypeScript type checking
5959
echo "🔍 Running TypeScript type check..."
60-
if ! npm run typecheck; then
60+
if ! pnpm run typecheck; then
6161
echo "❌ TypeScript type errors found. Please fix before committing."
6262
exit 1
6363
fi

0 commit comments

Comments
 (0)