-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
105 lines (105 loc) · 2.98 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
{
"name": "ts-node-starter",
"description": "TypeScript Development Kit with Fastify and GraphQL.",
"version": "1.0.0",
"engines": {
"node": "v16.17.1"
},
"license": "MIT",
"scripts": {
"dev": "NODE_ENV=development APP_ENV=dev ts-node-dev -r tsconfig-paths/register --respawn -T src",
"tscheck": "tsc --noEmit",
"fmt:check": "prettier --check '(src|tests)/**/*.{ts,json}'",
"lint:check": "eslint . --ext .ts,.json",
"lint": "eslint . --ext .ts,.json --fix",
"fmt": "prettier --write '(src|tests)/**/*.{ts,json}'",
"start": "ts-node -r tsconfig-paths/register -T src",
"start:prod": "APP_ENV=production pnpm start",
"start:stag": "APP_ENV=staging pnpm start",
"test": "ava",
"test:w": "ava -w",
"test:c": "c8 ava",
"t": "pnpm test",
"build:prod": "APP_ENV=production tsc -p tsconfig.build.json && tscpaths -p tsconfig.build.json -s ./src/ -o ./dist/src",
"start:build:prod": "NODE_ENV=production APP_ENV=production node dist/src",
"build:stag": "APP_ENV=staging tsc -p tsconfig.build.json && tscpaths -p tsconfig.build.json -s ./src/ -o ./dist/src",
"start:build:stag": "NODE_ENV=production APP_ENV=staging node dist/src"
},
"dependencies": {
"@fastify/cors": "^8.0.0",
"@fastify/helmet": "^9.1.0",
"@prisma/client": "^4.1.0",
"altair-fastify-plugin": "^4.5.3",
"class-validator": "^0.13.2",
"dotenv": "^16.0.2",
"fastify": "^4.3.0",
"fastify-cors": "^6.1.0",
"graphql": "^15.5.1",
"joi": "^17.6.0",
"lodash.merge": "^4.6.2",
"mercurius": "^8.11.2",
"reflect-metadata": "^0.1.13",
"type-graphql": "^1.1.1"
},
"devDependencies": {
"@swc/core": "^1.2.219",
"@swc/helpers": "^0.4.3",
"@types/lodash.merge": "^4.6.7",
"@types/node": "^18.6.1",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"ava": "^4.3.1",
"c8": "^7.12.0",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"msw": "^0.44.2",
"prettier": "^2.7.1",
"prisma": "^4.1.0",
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"tsconfig-paths": "^4.0.0",
"tscpaths": "^0.0.9",
"typescript": "^4.7.4"
},
"ava": {
"failFast": true,
"tap": false,
"extensions": [
"ts"
],
"files": [
"tests/(unit|integration)/**/*"
],
"environmentVariables": {
"APP_ENV": "dev"
},
"require": [
"tsconfig-paths/register",
"ts-node/register/transpile-only",
"dotenv/config",
"./tests/config/mocks/setup-tests.ts"
]
},
"eslintConfig": {
"$schema": "http://json.schemastore.org/eslintrc",
"root": true,
"parser": "@typescript-eslint/parser",
"ignorePatterns": [
".vscode",
"dist",
"coverage",
"node_modules"
],
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
]
},
"volta": {
"node": "16.17.1"
}
}