ed43399b24
- Install @types/bun and @types/jsdom for proper type definitions - Fix mock function typing in test files - Create jest-dom.d.ts to properly extend Bun's Matchers interface - Remove MockedFunction imports (not supported in Bun's types) - Cast global.fetch and useSession mocks to any where needed - Fix mock.module return types to match expected signatures This resolves TypeScript errors that were preventing proper code completion and type checking in IDEs.
85 lines
3.3 KiB
JSON
85 lines
3.3 KiB
JSON
{
|
|
"name": "euchre_camp",
|
|
"version": "0.1.3",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "NEXT_PUBLIC_GIT_COMMIT=$(git rev-parse --short HEAD) next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "bun run eslint",
|
|
"test": "bun test 'src/__tests__/unit/**' 'src/__tests__/*.test.tsx' 'src/__tests__/auth-simple.test.ts'",
|
|
"test:unit": "bun test src/__tests__/unit/",
|
|
"test:component": "bun test src/__tests__/*.test.tsx",
|
|
"test:run": "bun test 'src/__tests__/unit/**' 'src/__tests__/*.test.tsx' 'src/__tests__/auth-simple.test.ts'",
|
|
"test:randomize": "bun test src/__tests__/unit/ --randomize",
|
|
"test:unit:sequential": "bun test src/__tests__/unit/ --max-concurrency=1",
|
|
"test:acceptance": "bun x playwright test e2e/",
|
|
"test:acceptance:headed": "bun x playwright test e2e/ --headed",
|
|
"db:switch": "bun run scripts/switch-database.js",
|
|
"db:setup-postgres": "bun run scripts/setup-postgres.js",
|
|
"db:setup-dev": "bun run scripts/setup-postgres.js",
|
|
"db:setup-dev:clean": "bun run scripts/setup-postgres.js --drop",
|
|
"db:reset-dev": "bun run scripts/reset-dev-db.js",
|
|
"db:use-dev": "bun run scripts/use-dev-db.js",
|
|
"db:cleanup-prod": "bun run scripts/cleanup-prod-db.js",
|
|
"db:check-prod": "bun run scripts/check-test-records.js",
|
|
"db:seed": "bun run scripts/seed.js",
|
|
"docker:up": "docker-compose up -d",
|
|
"docker:down": "docker-compose down",
|
|
"docker:logs": "docker-compose logs -f",
|
|
"docker:build": "docker-compose build",
|
|
"docker:shell": "docker exec -it euchre-camp-app sh",
|
|
"version": "bun run scripts/bump-version.js",
|
|
"set-version": "bun run scripts/set-version.js",
|
|
"version:patch": "bun run scripts/bump-version.js patch",
|
|
"version:minor": "bun run scripts/bump-version.js minor",
|
|
"version:major": "bun run scripts/bump-version.js major",
|
|
"docker:build:push": "bun run scripts/build-and-push-docker.js",
|
|
"docker:compose:generate": "bun run scripts/generate-docker-compose.js",
|
|
"release": "bun run version:patch && bun run docker:compose:generate && bun run docker:build:push"
|
|
},
|
|
"dependencies": {
|
|
"@hookform/resolvers": "^5.2.2",
|
|
"@prisma/adapter-pg": "^7.6.0",
|
|
"@prisma/client": "^7.6.0",
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"bcrypt": "^6.0.0",
|
|
"bcryptjs": "^3.0.3",
|
|
"better-auth": "^1.5.6",
|
|
"glicko2": "^1.2.1",
|
|
"jose": "^6.2.2",
|
|
"next": "^16.2.1",
|
|
"openskill": "^4.1.1",
|
|
"papaparse": "^5.5.3",
|
|
"pg": "^8.20.0",
|
|
"prisma": "^7.6.0",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"react-hook-form": "^7.72.0",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.58.2",
|
|
"@tailwindcss/postcss": "^4",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/bcrypt": "^6.0.0",
|
|
"@types/bun": "^1.3.11",
|
|
"@types/jsdom": "^28.0.1",
|
|
"@types/node": "^20",
|
|
"@types/papaparse": "^5.5.2",
|
|
"@types/pg": "^8.20.0",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"argon2": "^0.44.0",
|
|
"eslint": "^10.1.0",
|
|
"eslint-config-next": "^16.2.1",
|
|
"jsdom": "^29.0.1",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5",
|
|
"vitest": "^4.1.2"
|
|
}
|
|
}
|