forked from supabase/postgres-meta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
93 lines (93 loc) · 2.97 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
{
"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": "node --loader ts-node/esm src/server/server.ts docs export > openapi.json",
"gen:types:typescript": "node --loader ts-node/esm src/server/server.ts gen types typescript",
"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": ">=16",
"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": {
"@sinclair/typebox": "^0.25.1",
"pg": "^8.7.1",
"pg-format": "^1.0.4",
"pgsql-parser": "^13.3.0",
"postgres-array": "^3.0.1",
"prettier": "^2.6.0",
"prettier-plugin-sql": "^0.13.0"
},
"devDependencies": {
"@fastify/cors": "^8.2.0",
"@fastify/swagger": "^8.2.1",
"@fastify/type-provider-typebox": "^2.4.0",
"@types/crypto-js": "^4.1.1",
"@types/jest": "^29.2.4",
"@types/node": "^16.18.3",
"@types/pg": "^8.6.5",
"@types/pg-format": "^1.0.1",
"cpy-cli": "^4.1.0",
"crypto-js": "^4.0.0",
"fastify": "^4.8.1",
"fastify-metrics": "^10.0.0",
"jest": "^29.3.1",
"nodemon": "^2.0.20",
"npm-run-all": "^4.1.5",
"pg-connection-string": "^2.5.0",
"pino": "^8.6.1",
"pino-pretty": "^9.1.1",
"pkg": "^5.5.2",
"rimraf": "^4.0.7",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"typescript": "~4.9",
"wait-for-localhost-cli": "^3.0.0"
}
}