Postgres 18 (already the pinned image) ships uuidv7() as a built-in function, so the app-level generator from the previous commit was unnecessary: same v7 ids, one line per column instead of a dependency plus a lib file, and it now works no matter what actually performs the insert (a migration, psql, another service) rather than only inserts that go through Drizzle's $defaultFn. Verified: schema-driven Drizzle insert and a plain SQL insert via psql both come back with a version-7-shaped id. Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"name": "findr-api",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
"scripts": {
|
|
"dev": "tsx watch --env-file-if-exists=.env src/index.ts",
|
|
"build": "tsup",
|
|
"start": "node dist/index.js",
|
|
"migrate": "tsx --env-file-if-exists=.env src/db/migrate.ts",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:up": "docker compose up -d postgres",
|
|
"db:down": "docker compose down",
|
|
"lint": "biome check .",
|
|
"format": "biome format --write .",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/cors": "^10.0.1",
|
|
"@fastify/helmet": "^12.0.1",
|
|
"@fastify/jwt": "^10.2.2",
|
|
"@fastify/rate-limit": "^11.2.0",
|
|
"@fastify/sensible": "^6.0.1",
|
|
"close-with-grace": "^2.1.0",
|
|
"drizzle-orm": "^0.45.2",
|
|
"fastify": "^5.12.1",
|
|
"fastify-plugin": "^5.0.1",
|
|
"get-jwks": "^11.0.3",
|
|
"ioredis": "^6.0.0",
|
|
"mqtt": "^5.15.2",
|
|
"postgres": "^3.4.5"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^1.9.4",
|
|
"@types/node": "^22.10.1",
|
|
"drizzle-kit": "^0.31.10",
|
|
"pino-pretty": "^13.0.0",
|
|
"tsup": "^8.5.1",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.2",
|
|
"vitest": "^4.1.11"
|
|
}
|
|
}
|