- env.ts: added 10 missing Zod-validated env vars (imager, paypal currency, argon2/bcrypt params) - Migrated 6 modules from process.env to validated env.* (auth, proxy-auth, paypal, password, redis, imager, moderation, alert, logger) - Replaced console.warn/error with pino logger in 9 server-side modules - Removed 50+ dead exports (SWF wrappers, coalesceHotelName, signIn, isStaff re-export, formatTimestamp, Skeleton/SkeletonCard, 4 unused housekeeping sections) - Consolidated date formatting: 28 files migrated to shared formatDate() from @/lib/format-date - Wired 4 radio/settings API routes through cached siteSettings service instead of raw Prisma queries - Added getMany()/getAll() helpers to SiteSettings service - Removed 88 dead Prisma model definitions (schema 2763→1846 lines) - Created admin action-helper.ts with wrapAction() for standardized error handling - Fixed useEffect dependency arrays in 4 data-heavy components - Replaced raw btn CSS classes with shadcn Button component across admin pages - Stripped dead i18n namespaces (common, pages.client) from all 22 translation files - Removed 2 dead scripts (create-release.sh, check-local-imports.ts) - Fixed knip.json configuration - Added 7 new test suites: format-date, paypal, moderation, alert, webhook, action-helper, and fixed password.test.ts for env mocking - All 358 tests passing across 72 test files - TypeScript: 0 errors
117 lines
3.1 KiB
JSON
117 lines
3.1 KiB
JSON
{
|
|
"name": "atomcms-next",
|
|
"private": true,
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
"packageManager": "[email protected]",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"prisma:generate": "prisma generate",
|
|
"typecheck": "tsc --noEmit --incremental false",
|
|
"biome:check": "biome check --write .",
|
|
"biome:lint": "biome lint .",
|
|
"biome:format": "biome format --write .",
|
|
"knip": "knip",
|
|
"analyze": "ANALYZE=true pnpm build",
|
|
"test": "vitest run",
|
|
"test:e2e": "playwright test",
|
|
"lint": "eslint . --ext .ts,.tsx --max-warnings=1000",
|
|
"lint:fix": "eslint . --ext .ts,.tsx --fix --max-warnings=1000",
|
|
"lhci:collect": "lhci collect",
|
|
"lhci:assert": "lhci assert",
|
|
"lhci:server": "lhci server",
|
|
"db:migrate": "tsx scripts/apply-migrations.ts",
|
|
"db:migrate:status": "tsx scripts/apply-migrations.ts --status",
|
|
"jobs:worker": "tsx scripts/jobs-worker.ts",
|
|
"prepare": "husky"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": [
|
|
"biome check --write",
|
|
"eslint --fix --max-warnings=1000"
|
|
],
|
|
"*.{json,md,css,scss,html}": [
|
|
"biome format --write"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@base-ui/react": "^1.6.0",
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@hookform/resolvers": "^5.4.0",
|
|
"@prisma/adapter-mariadb": "^7.9.0",
|
|
"@prisma/client": "^7.9.0",
|
|
"@sentry/nextjs": "^10.67.0",
|
|
"@tanstack/react-virtual": "^3.14.7",
|
|
"bcrypt": "^6.0.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"croner": "^10.0.1",
|
|
"framer-motion": "^12.42.2",
|
|
"hash-wasm": "^4.12.0",
|
|
"ioredis": "^5.11.1",
|
|
"jpeg-js": "^0.4.4",
|
|
"json5": "^2.2.3",
|
|
"jszip": "^3.10.1",
|
|
"lenis": "^1.3.25",
|
|
"lucide-react": "^1.25.0",
|
|
"lzma": "^2.3.2",
|
|
"music-metadata": "^11.14.0",
|
|
"mysql2": "^3.23.1",
|
|
"next": "^16.2.11",
|
|
"next-auth": "5.0.0-beta.32",
|
|
"next-intl": "^4.13.3",
|
|
"next-view-transitions": "^0.3.5",
|
|
"nodemailer": "^9.0.0",
|
|
"otplib": "^13.4.1",
|
|
"pino": "^10.3.1",
|
|
"react": "^19.2.8",
|
|
"react-dom": "^19.2.8",
|
|
"react-hook-form": "^7.82.0",
|
|
"resend": "^6.18.0",
|
|
"sanitize-html": "^2.17.6",
|
|
"server-only": "^0.0.1",
|
|
"sharp": "^0.35.3",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.6.0",
|
|
"tailwindcss-animate": "^1.0.7",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "2.5.5",
|
|
"@eslint/js": "^10.0.1",
|
|
"@lhci/cli": "^0.15.1",
|
|
"@next/bundle-analyzer": "^16.2.11",
|
|
"@playwright/test": "^1.61.1",
|
|
"@tailwindcss/forms": "^0.5.11",
|
|
"@tailwindcss/postcss": "^4.3.3",
|
|
"@tailwindcss/typography": "^0.5.20",
|
|
"@types/bcrypt": "^6.0.0",
|
|
"@types/node": "^26.1.1",
|
|
"@types/nodemailer": "^8.0.0",
|
|
"@types/react": "^19.2.17",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@types/sanitize-html": "^2.16.1",
|
|
"dotenv": "^17.0.0",
|
|
"eslint": "^10.7.0",
|
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
"husky": "^9.1.7",
|
|
"knip": "^6.27.0",
|
|
"pino-pretty": "^13.1.3",
|
|
"postcss": "^8.5.21",
|
|
"prisma": "^7.9.0",
|
|
"tailwindcss": "^4.3.3",
|
|
"tsx": "^4.23.1",
|
|
"typescript": "^7.0.0",
|
|
"typescript-eslint": "^8.65.0",
|
|
"vite": "^8.1.5",
|
|
"vitest": "^4.1.10"
|
|
}
|
|
}
|