-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
67 lines (67 loc) · 2.09 KB
/
package.json
File metadata and controls
67 lines (67 loc) · 2.09 KB
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
{
"name": "hackernews-node",
"version": "1.0.0",
"description": "A GraphQL API for a Hacker News clone.",
"license": "MIT",
"repository": "github:tanem/hackernews-node",
"author": "Tane Morgan (https://github.com/tanem)",
"bugs": "https://github.com/tanem/hackernews-node/issues",
"homepage": "https://github.com/tanem/hackernews-node",
"prettier": {
"semi": false,
"singleQuote": true
},
"scripts": {
"build": "npm run clean && npm run generate && tsc -p tsconfig.base.json",
"clean": "rm -rf dist",
"dev": "cross-env DATABASE_URL=file:./dev.db ts-node-dev --no-notify --respawn --transpile-only src/start.ts",
"generate": "npm run generate:prisma && npm run generate:nexus",
"generate:nexus": "cross-env NODE_ENV=development ts-node --transpile-only src/schema",
"generate:prisma": "prisma generate",
"migrate": "prisma migrate up -c --experimental",
"postinstall": "npm run generate",
"start": "node dist/src/start",
"test": "cross-env-shell DATABASE_URL=file:./test.db \"npm run migrate && jest -i\"",
"test:coverage": "npm t -- --coverage",
"test:watch": "npm t -- --watchAll"
},
"dependencies": {
"@nexus/schema": "0.15.0",
"bcryptjs": "2.4.3",
"graphql-yoga": "1.18.3",
"jsonwebtoken": "8.5.1",
"lodash": "4.17.21",
"nexus-plugin-prisma": "0.19.0"
},
"devDependencies": {
"@types/bcryptjs": "2.4.2",
"@types/chance": "1.1.3",
"@types/jest": "27.4.1",
"@types/jsonwebtoken": "8.5.8",
"@types/lodash": "4.14.179",
"@types/node": "14.18.12",
"@types/supertest": "2.0.11",
"@types/ws": "8.5.3",
"chance": "1.1.8",
"cross-env": "7.0.3",
"jest": "26.6.3",
"nodemon": "2.0.15",
"prettier": "2.5.1",
"subscriptions-transport-ws": "0.11.0",
"supertest": "6.2.2",
"ts-jest": "26.5.6",
"ts-node": "10.7.0",
"ts-node-dev": "1.1.8",
"typescript": "4.6.2"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.ts",
"!src/start.ts"
],
"preset": "ts-jest",
"setupFilesAfterEnv": [
"<rootDir>/test-support/setup-tests.ts"
]
}
}