Files
livedash-node/package.json

240 lines
9.0 KiB
JSON

{
"name": "livedash-node",
"type": "module",
"version": "0.2.0",
"private": true,
"scripts": {
"build": "next build",
"build:analyze": "ANALYZE=true next build",
"dev": "pnpm exec tsx server.ts",
"dev:next-only": "next dev --turbopack",
"format": "pnpm format:prettier; pnpm format:biome",
"format:check": "pnpm format:check-prettier; pnpm format:check-biome",
"format:biome": "biome format --write",
"format:check-biome": "biome format",
"format:prettier": "prettier --write .",
"format:check-prettier": "prettier --check .",
"lint": "next lint",
"lint:fix": "pnpm dlx eslint --fix",
"biome:check": "biome check",
"biome:fix": "biome check --write",
"biome:format": "biome format --write",
"biome:lint": "biome lint",
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev",
"prisma:seed": "pnpm exec tsx prisma/seed.ts",
"prisma:seed:platform": "pnpm exec tsx prisma/seed-platform.ts",
"prisma:push": "prisma db push",
"prisma:push:force": "prisma db push --force-reset",
"prisma:studio": "prisma studio",
"db:check": "pnpm exec tsx scripts/check-database-config.ts",
"start": "tsx server.ts",
"test": "concurrently 'vitest run' 'playwright test'",
"test:coverage": "concurrently \"vitest run --coverage\" \"echo 'To add playwright coverage thingy'\"",
"test:vitest": "vitest run",
"test:vitest:watch": "vitest",
"test:vitest:coverage": "vitest run --coverage",
"test:security-headers": "pnpm exec tsx scripts/test-security-headers.ts",
"test:security": "pnpm test:vitest tests/unit/http-security-headers.test.ts tests/integration/security-headers-basic.test.ts tests/unit/security.test.ts",
"test:csp": "pnpm exec tsx scripts/test-csp.ts",
"test:csp:validate": "pnpm exec tsx scripts/validate-csp-implementation.ts",
"test:csp:full": "pnpm test:csp && pnpm test:csp:validate && pnpm test:vitest tests/unit/enhanced-csp.test.ts tests/integration/csp-middleware.test.ts tests/integration/csp-report-endpoint.test.ts",
"lint:md": "markdownlint-cli2 \"**/*.md\" \"!.trunk/**\" \"!.venv/**\" \"!node_modules/**\"",
"lint:md:fix": "markdownlint-cli2 --fix \"**/*.md\" \"!.trunk/**\" \"!.venv/**\" \"!node_modules/**\"",
"lint:ci-warning": "biome ci --diagnostic-level=warn",
"lint:ci-error": "biome ci --diagnostic-level=error",
"migration:backup": "pnpm exec tsx scripts/migration/backup-database.ts full",
"migration:backup:schema": "pnpm exec tsx scripts/migration/backup-database.ts schema",
"migration:backup:data": "pnpm exec tsx scripts/migration/backup-database.ts data",
"migration:validate-db": "pnpm exec tsx scripts/migration/validate-database.ts",
"migration:validate-env": "pnpm exec tsx scripts/migration/environment-migration.ts validate",
"migration:migrate-env": "pnpm exec tsx scripts/migration/environment-migration.ts",
"migration:pre-check": "pnpm exec tsx scripts/migration/pre-deployment-checks.ts",
"migration:deploy": "pnpm exec tsx scripts/migration/deploy.ts",
"migration:deploy:dry-run": "pnpm exec tsx scripts/migration/deploy.ts --dry-run",
"migration:health-check": "pnpm exec tsx scripts/migration/health-checks.ts",
"migration:health-report": "pnpm exec tsx scripts/migration/health-checks.ts --report",
"migration:rollback": "pnpm exec tsx scripts/migration/rollback.ts",
"migration:rollback:dry-run": "pnpm exec tsx scripts/migration/rollback.ts --dry-run",
"migration:rollback:snapshot": "pnpm exec tsx scripts/migration/rollback.ts snapshot",
"migration:test": "pnpm migration:health-check && pnpm test",
"migration:test-trpc": "pnpm exec tsx scripts/migration/trpc-endpoint-tests.ts",
"migration:test-batch": "pnpm exec tsx scripts/migration/batch-processing-tests.ts",
"migration:test-all": "pnpm migration:test-trpc && pnpm migration:test-batch && pnpm migration:health-check",
"migration:full": "pnpm migration:pre-check && pnpm migration:backup && pnpm migration:deploy && pnpm migration:health-check",
"prepare": "husky"
},
"dependencies": {
"@prisma/adapter-pg": "^6.11.1",
"@prisma/client": "^6.11.1",
"@radix-ui/react-accordion": "^1.2.11",
"@radix-ui/react-alert-dialog": "^1.1.14",
"@radix-ui/react-collapsible": "^1.1.11",
"@radix-ui/react-dialog": "^1.1.14",
"@radix-ui/react-dropdown-menu": "^2.1.15",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-select": "^2.2.5",
"@radix-ui/react-separator": "^1.1.7",
"@radix-ui/react-slider": "^1.3.5",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-switch": "^1.2.5",
"@radix-ui/react-tabs": "^1.1.12",
"@radix-ui/react-toast": "^1.2.14",
"@radix-ui/react-toggle": "^1.1.9",
"@radix-ui/react-toggle-group": "^1.1.10",
"@radix-ui/react-tooltip": "^1.2.7",
"@rapideditor/country-coder": "^5.4.0",
"@tanstack/react-query": "^5.83.0",
"@tanstack/react-table": "^8.21.3",
"@trpc/client": "^11.4.3",
"@trpc/next": "^11.4.3",
"@trpc/react-query": "^11.4.3",
"@trpc/server": "^11.4.3",
"@types/canvas-confetti": "^1.9.0",
"@types/d3": "^7.4.3",
"@types/d3-cloud": "^1.2.9",
"@types/d3-selection": "^3.0.11",
"@types/geojson": "^7946.0.16",
"@types/leaflet": "^1.9.20",
"@types/node-fetch": "^2.6.12",
"bcryptjs": "^3.0.2",
"canvas-confetti": "^1.9.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"commander": "^14.0.0",
"csrf": "^3.1.0",
"csv-parse": "^6.0.0",
"d3": "^7.9.0",
"d3-cloud": "^1.2.7",
"d3-selection": "^3.0.0",
"date-fns": "^4.1.0",
"i18n-iso-countries": "^7.14.0",
"iso-639-1": "^3.1.5",
"leaflet": "^1.9.4",
"lru-cache": "^11.1.0",
"lucide-react": "^0.525.0",
"motion": "^12.23.3",
"next": "^15.3.5",
"next-auth": "^4.24.11",
"next-themes": "^0.4.6",
"node-cron": "^4.2.1",
"node-fetch": "^3.3.2",
"pg": "^8.16.3",
"react": "^19.1.0",
"react-day-picker": "^9.8.0",
"react-dom": "^19.1.0",
"react-leaflet": "^5.0.0",
"react-markdown": "^10.1.0",
"recharts": "^3.1.0",
"redis": "^5.6.0",
"rehype-raw": "^7.0.0",
"sonner": "^2.0.6",
"superjson": "^2.2.2",
"tailwind-merge": "^3.3.1",
"vaul": "^1.1.2",
"zod": "^4.0.5"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.31.0",
"@next/bundle-analyzer": "^15.3.5",
"@next/eslint-plugin-next": "^15.3.5",
"@playwright/test": "^1.54.1",
"@tailwindcss/postcss": "^4.1.11",
"@tanstack/react-query-devtools": "^5.83.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/node": "^24.0.13",
"@types/node-cron": "^3.0.11",
"@types/pg": "^8.15.4",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@typescript-eslint/eslint-plugin": "^8.36.0",
"@typescript-eslint/parser": "^8.36.0",
"@vitejs/plugin-react": "^4.6.0",
"@vitest/coverage-v8": "^3.2.4",
"concurrently": "^9.2.0",
"eslint": "^9.31.0",
"eslint-config-next": "^15.3.5",
"eslint-plugin-prettier": "^5.5.1",
"eslint-plugin-react-hooks": "^5.2.0",
"husky": "^9.1.7",
"jest-axe": "^10.0.0",
"jsdom": "^26.1.0",
"lint-staged": "^16.1.2",
"markdownlint-cli2": "^0.18.1",
"node-mocks-http": "^1.17.2",
"postcss": "^8.5.6",
"prettier": "^3.6.2",
"prettier-plugin-jinja-template": "^2.1.0",
"prisma": "^6.11.1",
"tailwindcss": "^4.1.11",
"ts-node": "^10.9.2",
"tsx": "^4.20.3",
"tw-animate-css": "^1.3.5",
"typescript": "^5.8.3",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.2.4",
"webpack-bundle-analyzer": "^4.10.2"
},
"prettier": {
"bracketSpacing": true,
"endOfLine": "auto",
"printWidth": 80,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"overrides": [
{
"files": [
"*.md",
"*.markdown"
],
"options": {
"tabWidth": 2,
"useTabs": false,
"proseWrap": "preserve",
"printWidth": 100
}
}
],
"plugins": [
"prettier-plugin-jinja-template"
]
},
"markdownlint-cli2": {
"config": {
"MD007": false,
"MD013": false,
"MD024": false,
"MD029": false,
"MD030": false,
"MD032": false,
"MD033": false,
"MD036": false,
"MD040": false,
"MD041": false,
"MD046": false
},
"ignores": [
"node_modules",
".git",
"*.json"
]
},
"lint-staged": {
"*.{md,markdown}": [
"markdownlint-cli2 --fix"
],
"*.{js,ts,cjs,cts,mjs,mts,d.cts,d.mts,jsx,tsx,json,jsonc}": [
"biome check --files-ignore-unknown=true",
"biome check --write --no-errors-on-unmatched",
"biome format --write --no-errors-on-unmatched"
]
},
"packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad"
}