-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
140 lines (140 loc) · 5.61 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
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
132
133
134
135
136
137
138
139
140
{
"name": "@rubberdok/api",
"version": "1.0.0",
"description": "API for https://indokntnu.no, the website for the student organizations at Industrial Economics and Technology Management, NTNU.",
"repository": "https://github.com/rubberdok/indok-api",
"author": "Rubberdøk NTNU",
"license": "MIT",
"private": true,
"type": "module",
"packageManager": "pnpm@9.4.0",
"files": ["dist", "certs", "scripts"],
"engines": {
"node": ">=20",
"pnpm": ">=9"
},
"scripts": {
"setup": "run-p generate",
"start:production": "node --import ./dist/instrument.js ./dist/server.js",
"start:worker:production": "node --import ./dist/instrument.js ./dist/worker.js",
"build:production": "run-s generate:gql swc",
"build": "pnpm run swc",
"studio": "prisma studio",
"db:migrate:dev": "dotenv -e .env.development -- prisma migrate dev",
"db:migrate:status": "prisma migrate status",
"db:migrate": "prisma migrate deploy",
"db:push": "dotenv -e .env.development -- prisma db push",
"db:seed": "dotenv -e .env.development -- node --import @swc-node/register/esm-register src/repositories/seed.ts",
"dev": "run-s docker:up 'start-dev {@}' --",
"start-dev": "concurrently --restart-tries 3 --kill-signal -c cyan.bold,cyan.dim,magenta.dim,black.dim pnpm:watch-*",
"watch-server": "MODE=development node --enable-source-maps --import @swc-node/register/esm-register --watch ./src/server.ts | pino-pretty",
"watch-worker": "MODE=worker.development node --enable-source-maps --import @swc-node/register/esm-register --watch ./src/worker.ts | pino-pretty",
"watch-gql": "pnpm generate:gql --watch",
"watch-prisma": "pnpm generate:prisma --watch",
"docker:up": "docker compose up postgres redis -d && wait-on tcp:5433 -t 20000",
"docker:down": "docker compose down",
"generate:gql": "NODE_OPTIONS='-r @swc-node/register' graphql-codegen-esm -c codegen.config.ts",
"generate:prisma": "prisma generate --no-hints",
"generate": "run-p generate:*",
"integration-test": "dotenv -e .env.test -- pnpm db:push --skip-generate && dotenv -e .env.test -- pnpm jest --config jest.integration.config.cjs",
"format": "biome format .",
"format:write": "biome format --write .",
"lint": "biome check .",
"lint:write": "biome check --write .",
"lint:ci": "biome ci .",
"setup-integration-test": "run-s docker:up",
"swc": "swc src -d dist --strip-leading-paths",
"test:integration:ci": "run-s setup 'integration-test {@}' -- --reporters='jest-junit' --reporters='default' --reporters='github-actions' --collect-coverage",
"test:integration": "run-s docker:up 'integration-test {@}' --",
"test": "dotenv -e .env.test -- pnpm jest",
"test:all": "run-s docker:up 'test-all {@}' --",
"test-all": "dotenv -e .env.test -- pnpm jest --test-match \"**/!(dev).test.ts\"",
"test:ci": "pnpm run setup && dotenv -e .env.test -- pnpm jest --reporters='jest-junit' --reporters='default' --collect-coverage",
"test:dev": "NODE_ENV=production pnpm jest --reporters='jest-junit' --reporters='default' --config jest.dev.config.cjs",
"jest": "node --experimental-vm-modules --no-warnings=ExperimentalWarning ./node_modules/jest/bin/jest.js",
"tsc": "tsc",
"tsc:ci": "run-s setup tsc",
"check": "run-s setup tsc lint test",
"clean-dist": "rm -rf dist"
},
"optionalDependencies": {
"@swc/core-linux-arm64-musl": "^1.9.2",
"@swc/core-linux-arm64-gnu": "^1.9.2",
"@swc/core-darwin-x64": "^1.9.2"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@eddeee888/gcg-typescript-resolver-files": "^0.10.4",
"@faker-js/faker": "^9.1.0",
"@graphql-codegen/add": "^5.0.3",
"@graphql-codegen/cli": "^5.0.3",
"@graphql-codegen/client-preset": "^4.3.3",
"@graphql-codegen/schema-ast": "^4.1.0",
"@graphql-typed-document-node/core": "^3.2.0",
"@jest/globals": "^29.7.0",
"@parcel/watcher": "^2.4.1",
"@swc-node/register": "1.10.9",
"@swc/cli": "^0.5.0",
"@swc/core": "^1.9.2",
"@swc/helpers": "^0.5.13",
"@swc/jest": "^0.2.37",
"@types/connect-redis": "^0.0.23",
"@types/jest": "^29.5.14",
"@types/lodash-es": "^4.17.12",
"@types/luxon": "^3.4.2",
"@types/node": "^20.16.5",
"concurrently": "^9.0.1",
"dotenv-cli": "^7.4.2",
"execa": "^9.4.0",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"jest-mock-extended": "^3.0.7",
"npm-run-all2": "^6.2.3",
"pino-pretty": "^11.2.2",
"typescript": "^5.6.3",
"wait-on": "^8.0.1"
},
"dependencies": {
"@apollo/server": "^4.11.2",
"@as-integrations/fastify": "^2.1.1",
"@azure/identity": "^4.5.0",
"@azure/storage-blob": "^12.25.0",
"@bull-board/api": "^5.23.0",
"@bull-board/fastify": "^5.23.0",
"@fastify/compress": "^7.0.3",
"@fastify/cookie": "^9.4.0",
"@fastify/cors": "^9.0.1",
"@fastify/helmet": "^11.1.1",
"@fastify/rate-limit": "^9.1.0",
"@fastify/redis": "^6.2.0",
"@fastify/session": "^10.9.0",
"@fastify/under-pressure": "^8.5.1",
"@opentelemetry/exporter-trace-otlp-http": "^0.53.0",
"@opentelemetry/instrumentation": "^0.53.0",
"@opentelemetry/resources": "^1.27.0",
"@opentelemetry/sdk-trace-base": "^1.26.0",
"@opentelemetry/sdk-trace-node": "^1.26.0",
"@opentelemetry/semantic-conventions": "^1.27.0",
"@prisma/client": "^5.21.1",
"@prisma/instrumentation": "^5.21.1",
"@sentry/node": "^8.36.0",
"@vippsmobilepay/sdk": "^2.4.0",
"bullmq": "^5.25.6",
"connect-redis": "^7.1.1",
"dotenv": "^16.4.5",
"fastify": "^4.28.1",
"fastify-plugin": "^5.0.1",
"graphql": "^16.9.0",
"graphql-scalars": "^1.23.0",
"graphql-tag": "^2.12.6",
"ioredis": "^5.4.1",
"lodash-es": "^4.17.21",
"luxon": "^3.5.0",
"openid-client": "^5.7.0",
"pino": "^9.5.0",
"postmark": "^4.0.5",
"prisma": "^5.21.1",
"yargs": "^17.7.2",
"zod": "^3.23.8"
}
}