Files
orangecat/scripts
g-butandClaude Opus 4.7 761d9292b7 chore: drop unused react-router-dom + @types/react-router-dom
Last session noticed react-router-dom was a direct dep with zero
imports anywhere in src/ — confirmed: no .ts/.tsx/.js source code
imports it. The only references were:
  - jest.config.js moduleNameMapper for the package
  - __mocks__/react-router-dom.js (an empty stub: `module.exports = {}`)
  - scripts/analysis/webpack-bundle-optimizer.js bundling regex

OrangeCat is a Next.js App Router project (Next 15.5); there is no
need for react-router. The deps were carry-over from an earlier
project state. Notably @types/react-router-dom@5.3.3 was *also*
orphaned-and-wrong: react-router-dom@7 ships its own types, so the
@types package was for a v5 API that hadn't shipped in years.

Removes 6 packages from node_modules (-79 lockfile lines), 1 stub
file, and the unused mock/regex entries. No functional change.

Verified: type-check clean, ESLint clean, jest 648 pass · 1 skipped,
production `next build` 178/178 static pages, npm audit 0 vulns.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 18:14:40 +02:00
..
2025-12-10 16:56:40 +01:00
2025-12-10 16:56:40 +01:00

Scripts Directory

This directory contains all automation scripts organized by purpose.

Directory Structure

  • analysis/ - Bundle analysis, documentation checking, and optimization tools
  • auth-fix/ - Scripts to fix authentication and RLS policy issues
  • db/ - Database operations, migrations, and schema management
    • Migration scripts moved from root: apply-migration.js, apply-*-migration.js
    • Old schema files archived in db/archive/
  • deployment/ - Deployment, production setup, and monitoring scripts
  • dev/ - Development helpers, local setup, and debugging tools
  • diagnostics/ - Health checks and system diagnostics
  • maintenance/ - Cleanup, optimization, and maintenance scripts
  • monitoring/ - Performance monitoring and bundle size tracking
  • oauth/ - OAuth provider setup and configuration
  • profile-fix/ - Scripts to fix profile-related issues
  • schema-fix/ - Database schema fixes and migrations
  • storage/ - Supabase storage bucket setup and management
  • test/ - Testing utilities and validation scripts
    • Test/debug scripts moved from root: test-*.js, check-*.js, debug-*.js

Usage

Most scripts can be run with:

node scripts/{category}/script-name.js

For deployment scripts:

bash scripts/deployment/script-name.sh

Important Scripts

  • scripts/dev/dev-start.js - Main development server starter
  • scripts/deployment/one-button-deploy.js - Production deployment
  • scripts/db/apply-migrations.ts - Database migrations
  • scripts/maintenance/cleanup-console-logs.ts - Remove console.log statements