forked from supabase/postgres-meta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
95 lines (95 loc) · 3.05 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"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\"",
"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",
"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",
"pkg": "run-s clean build && pkg .pkg.config.json",
"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": "node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand",
"test:update": "run-s db:clean db:run && node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand --updateSnapshot && run-s db:clean"
},
"engines": {
"node": ">=18",
"npm": ">=8"
},
"jest": {
"preset": "ts-jest/presets/default-esm",
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"transform": {
"^.+\\.tsx?$": [
"ts-jest",
{
"useESM": true,
"tsconfig": "./tsconfig.jest.json"
}
]
},
"testEnvironment": "node",
"testMatch": [
"**/*.test.ts"
]
},
"dependencies": {
"@fastify/cors": "^8.2.0",
"@fastify/swagger": "^8.2.1",
"@fastify/type-provider-typebox": "^2.4.0",
"@sinclair/typebox": "^0.25.1",
"crypto-js": "^4.0.0",
"fastify": "^4.8.1",
"fastify-metrics": "^10.0.0",
"pg": "^8.7.1",
"pg-connection-string": "^2.5.0",
"pg-format": "^1.0.4",
"pg-protocol": "^1.6.0",
"pgsql-parser": "^13.3.0",
"pino": "^8.6.1",
"postgres-array": "^3.0.1",
"prettier": "^2.6.0",
"prettier-plugin-sql": "^0.13.0"
},
"devDependencies": {
"@types/crypto-js": "^4.1.1",
"@types/jest": "^29.2.4",
"@types/node": "^18.17.17",
"@types/pg": "^8.6.5",
"@types/pg-format": "^1.0.1",
"@types/prettier": "^2.7.3",
"cpy-cli": "^4.1.0",
"jest": "^29.3.1",
"nodemon": "^2.0.20",
"npm-run-all": "^4.1.5",
"pino-pretty": "^10.2.3",
"pkg": "^5.5.2",
"rimraf": "^5.0.5",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"typescript": "~4.9",
"wait-for-localhost-cli": "^3.0.0"
}
}