-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
89 lines (89 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
{
"name": "ndla-graphql-api",
"version": "1.0.0",
"description": "NDLA GraphQL server",
"main": "src/server.js",
"author": "ndla@knowit.no",
"license": "GPL-3.0",
"private": true,
"scripts": {
"build": "yarn build-ts",
"build-ts": "tsc",
"ncc": "ncc build src/server.ts -o build",
"check-all": "yarn lint && yarn build-ts && yarn test",
"lint": "yarn lint-prettier && yarn lint-es",
"lint-es": "eslint --cache --cache-location '.eslintcache/' --max-warnings=0 src",
"lint-prettier": "prettier --l \"src/**/*.ts\"",
"prettier": "prettier --write \"src/**/*.ts\"",
"format": "prettier --write \"src/**/*.ts\"",
"generate-schema-types": "graphql-codegen --config local-codegen.yml && prettier --write src/types/schema.d.ts src/schema.ts",
"start": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold\" \"tsc -w\" \"node --watch build/server.js\"",
"start-with-local-converter": "LOCAL_CONVERTER=true yarn start",
"start-prod": "NODE_ENV=production node ./build/server.js",
"test": "jest",
"tdd": "jest --watch"
},
"engines": {
"node": ">=20.13.0"
},
"dependencies": {
"@apollo/server": "^4.11.2",
"@graphql-tools/schema": "^10.0.11",
"@ndla/licenses": "^8.0.3-alpha.0",
"cheerio": "^1.0.0-rc.12",
"compression": "^1.7.4",
"dataloader": "^1.4.0",
"dotenv": "^6.2.0",
"express": "^4.21.2",
"express-prom-bundle": "^7.0.0",
"graphql": "^16.9.0",
"graphql-scalars": "^1.24.0",
"graphql-tag": "^2.12.6",
"he": "^1.2.0",
"lodash": "^4.17.21",
"lru-cache": "^7.0.0",
"marked": "^9.1.0",
"node-fetch": "2.6.7",
"prismjs": "^1.29.0",
"prom-client": "^15.1.3",
"query-string": "^6.2.0",
"sanitize-html": "^2.13.1",
"winston": "^3.13.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.3",
"@graphql-codegen/schema-ast": "^4.1.0",
"@graphql-codegen/typescript-operations": "^4.4.0",
"@graphql-codegen/typescript-resolvers": "^4.4.1",
"@graphql-eslint/eslint-plugin": "^4.3.0",
"@graphql-tools/mock": "^9.0.9",
"@jest-mock/express": "^2.0.2",
"@ndla/types-backend": "^1.0.1",
"@ndla/types-embed": "^5.0.6-alpha.0",
"@ndla/types-taxonomy": "^1.0.33",
"@types/compression": "^1.7.2",
"@types/cors": "^2.8.4",
"@types/dotenv": "^6.1.0",
"@types/express": "^4.17.21",
"@types/graphql": "^14.5.0",
"@types/he": "^1.1.1",
"@types/jest": "^29.0.2",
"@types/lodash": "^4.14.118",
"@types/node": "^20.12.11",
"@types/node-fetch": "^2.1.2",
"@types/prismjs": "^1.26.0",
"@types/query-string": "^6.1.1",
"@types/sanitize-html": "^2.11.0",
"@vercel/ncc": "^0.34.0",
"concurrently": "^9.1.0",
"eslint": "^9.16.0",
"eslint-config-ndla": "^6.0.0-alpha.0",
"jest": "^29.0.3",
"nock": "^13.2.9",
"prettier": "^3.1.0",
"ts-jest": "^29.0.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.17.0"
},
"packageManager": "yarn@4.1.0"
}