Files
websitedev/proto/package.json
T
Do SikiandClaude Sonnet 5 6cb99f603a chore(deps): upgrade Next.js to 16.3.4 for Payload CMS compatibility
Payload 3.88.0's peer range for `next` is >=15.2.9 <15.3.0 ||
>=15.3.9 <15.4.0 || >=15.4.11 <15.5.0 || >=16.2.6 <17.0.0 — the
project's previous 15.5.23 fell in the unsupported gap between the
15.4.x and 16.2.x ranges. Upgrading to 16.3.4 (React 19.1.0 stays
compatible) unblocks MITHOME-86.

- next.config.ts: drop the removed `eslint.ignoreDuringBuilds` option
  (Next 16 no longer runs ESLint during `next build`)
- eslint.config.mjs: import eslint-config-next's native flat-config
  arrays directly instead of bridging through FlatCompat, which threw
  "Converting circular structure to JSON" under ESLint 9 with the
  upgraded config
- tsconfig.json: Next 16's own migration set `jsx: react-jsx` and added
  `.next/dev/types/**/*.ts` to `include`
- ThemeProvider.tsx: suppress two react-hooks/set-state-in-effect
  false positives (new rule shipped with eslint-config-next 16) —
  these effects intentionally sync state from localStorage/DOM on
  mount, there is no subscription to move the setState into

Verified: npm run build, npm run lint, tsc --noEmit, npm test (58
passed) all clean on this change alone, before installing Payload.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 03:04:54 +02:00

62 lines
2.8 KiB
JSON
Executable File

{
"name": "proto",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"build": "next build --turbopack",
"start": "next start",
"lint": "eslint",
"test": "jest --config jest.config.unit.js",
"test:watch": "jest --config jest.config.unit.js --watch",
"test:coverage": "jest --config jest.config.unit.js --coverage",
"test:unit": "jest --config jest.config.unit.js",
"test:browser": "jest --config jest.config.js src/__tests__/browser-integration.test.ts",
"test:integration": "INTEGRATION_TESTS=1 jest --config jest.config.integration.js src/__tests__/integration.test.ts",
"test:e2e": "E2E_TESTS=1 jest --config jest.config.integration.js src/__tests__/e2e-docker.test.ts",
"test:smoke:staging": "playwright test --config=playwright.config.ts",
"test:docker": "npm run test:integration && npm run test:e2e",
"test:all": "npm run test:unit && npm run test:browser && npm run test:docker",
"test:report": "npm test -- --json --outputFile=test-results.json --silent && node ../scripts/sync-test-management.js",
"test:report:integration": "npm run test:integration -- --json --outputFile=integration-results.json --silent && node ../scripts/sync-test-management.js --results-path integration-results.json",
"test:sync": "node ../scripts/sync-test-management.js",
"test:gherkin": "npm run test:all -- --json --outputFile=test-results.json --silent && node ../scripts/generate-gherkin-reports.js test-results.json",
"test:update-tc": "node ../scripts/update-tc-issues.js",
"test:full-report": "npm run test:gherkin && npm run test:update-tc",
"docker:dev": "cd .. && docker-compose -f docker-compose.dev.yml up --build",
"docker:dev:down": "cd .. && docker-compose -f docker-compose.dev.yml down",
"docker:dev:logs": "cd .. && docker-compose -f docker-compose.dev.yml logs -f app",
"docker:build": "docker build -t mozdit-app .",
"docker:run": "docker run -p 3000:3000 --env-file .env.local mozdit-app"
},
"dependencies": {
"mongodb": "^6.5",
"mongoose": "^8.2",
"next": "^16.3.4",
"react": "19.1.0",
"react-dom": "19.1.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@playwright/test": "^1.62.1",
"@tailwindcss/postcss": "^4",
"@testing-library/jest-dom": "^6.5",
"@testing-library/react": "^16.0",
"@testing-library/user-event": "^14.5",
"@types/jest": "^29.5",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/winston": "^2.4",
"eslint": "^9",
"eslint-config-next": "^16.3.4",
"jest": "^29.7",
"jest-environment-jsdom": "^29.7",
"tailwindcss": "^4",
"typescript": "^5",
"undici": "^7.15.0",
"winston": "^3.11",
"winston-loki": "^6.0"
}
}