-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
131 lines (131 loc) · 9.51 KB
/
Copy pathpackage.json
File metadata and controls
131 lines (131 loc) · 9.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "starmapper",
"version": "0.6.11",
"private": true,
"type": "module",
"license": "AGPL-3.0-only",
"packageManager": "pnpm@11.1.2",
"engines": {
"node": ">=20.0.0",
"pnpm": ">=9"
},
"scripts": {
"prepare": "git rev-parse --git-dir > /dev/null 2>&1 && git config core.hooksPath .githooks || true",
"postinstall": "prisma generate",
"dev": "next dev",
"dev:local": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL_LOCAL next dev'",
"build": "prisma generate && next build",
"start": "next start",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "eslint . --cache --cache-location .eslintcache",
"lint:fix": "eslint . --fix",
"db:setup": "sh -c 'set -a && . .env.local && set +a && bash scripts/db/db-setup.sh'",
"db:push": "sh -c 'set -a && . .env.local && set +a && prisma db push'",
"db:push:local": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL_LOCAL prisma db push'",
"db:generate": "prisma generate",
"db:studio": "sh -c 'set -a && . .env.local && set +a && prisma studio'",
"seed:geonames": "tsx scripts/backfill/seed-geocache-geonames.ts",
"seed:geonames:dry": "tsx scripts/backfill/seed-geocache-geonames.ts --dry-run",
"stats:views": "tsx scripts/ops/view-stats.ts",
"ops:firewall-snapshot": "bash scripts/ops/snapshot-firewall.sh",
"maintenance": "tsx scripts/ops/maintenance-wizard.ts",
"db:seed:trending-watchlist": "echo 'Target required: pnpm db:seed:trending-watchlist:local OR :prod' && exit 1",
"db:seed:trending-watchlist:local": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL_LOCAL tsx scripts/db/seed-trending-watchlist.ts \"$@\"' _",
"db:seed:trending-watchlist:prod": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL tsx scripts/db/seed-trending-watchlist.ts \"$@\"' _",
"backfill:api-key-hash": "echo 'Target required: pnpm backfill:api-key-hash:local OR :prod' && exit 1",
"backfill:api-key-hash:local": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL_LOCAL tsx scripts/backfill/backfill-api-key-hash.ts'",
"backfill:api-key-hash:prod": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL tsx scripts/backfill/backfill-api-key-hash.ts'",
"backfill:organic-score": "echo 'Target required: pnpm backfill:organic-score:local OR :prod' && exit 1",
"backfill:organic-score:local": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL_LOCAL tsx scripts/backfill/backfill-organic-score.ts \"$@\"' _",
"backfill:organic-score:prod": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL tsx scripts/backfill/backfill-organic-score.ts \"$@\"' _",
"backfill:repo-metrics": "echo 'Target required: pnpm backfill:repo-metrics:local OR :prod' && exit 1",
"backfill:repo-metrics:local": "sh -c 'set -a && . .env.local && set +a && DATABASE_URL=$DATABASE_URL_LOCAL tsx scripts/backfill/backfill-repo-metrics.ts \"$@\"' _",
"backfill:repo-metrics:prod": "sh -c 'set -a && . .env.local && set +a && DATABASE_URL_LOCAL= NEXT_PUBLIC_ORGANIC_SCORE_ENABLED=true tsx scripts/backfill/backfill-repo-metrics.ts \"$@\"' _",
"backfill:repo-languages": "echo 'Target required: pnpm backfill:repo-languages:local OR :prod' && exit 1",
"backfill:repo-languages:local": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/backfill/backfill-repo-languages.ts \"$@\"' _",
"backfill:repo-languages:prod": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/backfill/backfill-repo-languages.ts --prod \"$@\"' _",
"backfill:user-top-repos": "echo 'Target required: pnpm backfill:user-top-repos:local OR :prod' && exit 1",
"backfill:user-top-repos:local": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/backfill/backfill-user-top-repos.ts \"$@\"' _",
"backfill:user-top-repos:prod": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/backfill/backfill-user-top-repos.ts --prod \"$@\"' _",
"backfill:languages": "echo 'Target required: pnpm backfill:languages:local OR :prod' && exit 1",
"backfill:languages:local": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/backfill/backfill-languages.ts \"$@\"' _",
"backfill:languages:prod": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/backfill/backfill-languages.ts --prod \"$@\"' _",
"backfill:dependents": "echo 'Target required: pnpm backfill:dependents:local OR :prod' && exit 1",
"backfill:dependents:local": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL_LOCAL tsx scripts/backfill/backfill-dependents.ts \"$@\"' _",
"backfill:dependents:prod": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL tsx scripts/backfill/backfill-dependents.ts \"$@\"' _",
"backfill:contributors": "echo 'Target required: pnpm backfill:contributors:local OR :prod' && exit 1",
"backfill:contributors:local": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL_LOCAL tsx scripts/backfill/backfill-contributors.ts \"$@\"' _",
"backfill:contributors:prod": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL tsx scripts/backfill/backfill-contributors.ts \"$@\"' _",
"index:repo": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/ops/index-repo.ts \"$@\"' _",
"index:repo:local": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/ops/index-repo.ts --base-url http://localhost:3000 \"$@\"' _",
"index:followers": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/ops/index-followers.ts \"$@\"' _",
"index:followers:local": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/ops/index-followers.ts --base-url http://localhost:3000 \"$@\"' _",
"index:contributors": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/ops/index-contributors.ts \"$@\"' _",
"index:contributors:local": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/ops/index-contributors.ts --base-url http://localhost:3000 \"$@\"' _",
"batch:contributors": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL_LOCAL tsx scripts/ops/batch-index-contributors.ts \"$@\"' _",
"batch:contributors:prod": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard tsx scripts/ops/batch-index-contributors.ts --prod \"$@\"' _",
"batch:scan": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/ops/batch-scan.ts --local \"$@\"' _",
"batch:scan:prod": "sh -c '[ \"$1\" = \"--\" ] && shift; tsx scripts/ops/batch-scan.ts --allow-neon \"$@\"' _",
"auto-index": "sh -c 'set -a && . .env.local && set +a && tsx scripts/ops/auto-index.ts \"$@\"' _",
"auto-index:local": "sh -c 'set -a && . .env.local && set +a && tsx scripts/ops/auto-index.ts --local \"$@\"' _",
"index:engaged": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard tsx scripts/ops/index-engaged.ts \"$@\"' _",
"index:engaged:local": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL_LOCAL tsx scripts/ops/index-engaged.ts \"$@\"' _",
"refresh:engaged": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard tsx scripts/ops/index-engaged.ts --from-corpus \"$@\"' _",
"setup:mvs": "sh -c 'set -a && . .env.local && set +a && DATABASE_URL=$DATABASE_URL_LOCAL tsx scripts/db/setup-mvs.ts'",
"setup:mvs:prod": "sh -c 'set -a && . .env.local && set +a && tsx scripts/db/setup-mvs.ts'",
"audit:geocache": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL_LOCAL tsx scripts/audit/audit-geocache-integrity.ts \"$@\"' _",
"audit:geocache:prod": "sh -c 'set -a && . .env.local && set +a && DATABASE_DRIVER=standard DATABASE_URL=$DATABASE_URL tsx scripts/audit/audit-geocache-integrity.ts \"$@\"' _"
},
"dependencies": {
"@neondatabase/serverless": "^1.1.0",
"@prisma/adapter-neon": "^7.9.1",
"@prisma/adapter-pg": "^7.9.1",
"@prisma/client": "^7.8.0",
"@t3-oss/env-nextjs": "^0.13.11",
"@upstash/ratelimit": "^2.0.8",
"@upstash/redis": "^1.38.0",
"@vercel/functions": "^3.7.6",
"lucide-react": "^1.25.0",
"maplibre-gl": "^5.24.0",
"next": "16.2.12",
"pg": "^8.22.0",
"react": "19.2.7",
"react-dom": "19.2.7",
"resend": "^6.18.1",
"topojson-client": "^3.1.0",
"web-vitals": "^6.0.1",
"world-atlas": "^2.0.2",
"ws": "^8.21.0",
"zod": "^4.4.3"
},
"devDependencies": {
"@inquirer/prompts": "^8.5.2",
"@next/eslint-plugin-next": "^16.2.6",
"@tailwindcss/postcss": "^4.3.3",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^26.1.2",
"@types/pg": "^8.20.0",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/topojson-client": "^3.1.5",
"@types/topojson-specification": "^1.0.5",
"@types/ws": "^8.18.1",
"@vitejs/plugin-react": "^6.0.4",
"@vitest/coverage-v8": "^4.1.6",
"eslint": "^10.7.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react-hooks": "^7.1.1",
"jsdom": "^29.1.1",
"prisma": "^7.8.0",
"tailwindcss": "^4.3.3",
"tsx": "^4.22.4",
"typescript": "^6",
"typescript-eslint": "^8.65.0",
"vitest": "^4.1.10"
}
}