-
-
Notifications
You must be signed in to change notification settings - Fork 127
/
package.json
73 lines (73 loc) · 2.6 KB
/
package.json
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
{
"name": "@supabase/postgres-meta",
"version": "0.0.0-automated",
"description": "A RESTful API for managing your Postgres.",
"homepage": "https://github.com/supabase/postgres-meta",
"bugs": "https://github.com/supabase/postgres-meta/issues",
"license": "MIT",
"author": "Supabase",
"files": [
"dist"
],
"type": "module",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"imports": {
"#package.json": "./package.json"
},
"repository": "supabase/postgres-meta",
"scripts": {
"check": "tsc -p tsconfig.json --noEmit",
"clean": "rimraf dist tsconfig.tsbuildinfo",
"format": "prettier --write '{src,test}/**/*.ts' '*.ts'",
"build": "tsc -p tsconfig.json && cpy 'src/lib/sql/*.sql' dist/lib/sql",
"docs:export": "PG_META_EXPORT_DOCS=true node --loader ts-node/esm src/server/server.ts > openapi.json",
"gen:types:typescript": "PG_META_GENERATE_TYPES=typescript node --loader ts-node/esm src/server/server.ts",
"gen:types:go": "PG_META_GENERATE_TYPES=go node --loader ts-node/esm src/server/server.ts",
"gen:types:swift": "PG_META_GENERATE_TYPES=swift node --loader ts-node/esm src/server/server.ts",
"start": "node dist/server/server.js",
"dev": "trap 'npm run db:clean' INT && run-s db:clean db:run && nodemon --exec node --loader ts-node/esm src/server/server.ts | pino-pretty --colorize",
"test": "run-s db:clean db:run test:run db:clean",
"db:clean": "cd test/db && docker compose down",
"db:run": "cd test/db && docker compose up --detach && sleep 5",
"test:run": "vitest run",
"test:update": "run-s db:clean db:run && vitest run --update && run-s db:clean"
},
"engines": {
"node": ">=20",
"npm": ">=9"
},
"dependencies": {
"@sinclair/typebox": "^0.31.25",
"@fastify/cors": "^10.0.1",
"@fastify/swagger": "^9.2.0",
"@fastify/type-provider-typebox": "^5.0.1",
"close-with-grace": "^2.1.0",
"crypto-js": "^4.0.0",
"fastify": "^5.1.0",
"fastify-metrics": "^12.1.0",
"pg": "^8.13.1",
"pg-connection-string": "^2.7.0",
"pg-format": "^1.0.4",
"pg-protocol": "^1.7.0",
"pgsql-parser": "^13.16.0",
"pino": "^9.5.0",
"postgres-array": "^3.0.1",
"prettier": "^3.3.3",
"prettier-plugin-sql": "0.17.1"
},
"devDependencies": {
"@types/crypto-js": "^4.1.1",
"@types/node": "^20.11.14",
"@types/pg": "^8.11.10",
"@types/pg-format": "^1.0.1",
"cpy-cli": "^5.0.0",
"nodemon": "^3.1.7",
"npm-run-all": "^4.1.5",
"pino-pretty": "^12.0.0",
"rimraf": "^6.0.1",
"ts-node": "^10.9.1",
"typescript": "^5.6.3",
"vitest": "^2.1.4"
}
}