This repository has been archived by the owner on Jun 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
170 lines (170 loc) · 4.44 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"name": "@donew/mentoring-api",
"version": "0.0.0",
"description": "The source code for the DoNew Mentoring API server",
"author": {
"name": "Vedant K",
"url": "https://github.com/gamemaker1"
},
"license": "ISC",
"main": "./build/index.js",
"exports": "./build/index.js",
"type": "module",
"files": [
"build",
"package.json",
"tsconfig.json",
"pnpm-lock.yaml",
"license.md",
"readme.md"
],
"scripts": {
"clean": "del-cli build/ coverage/ test-export/ *.log",
"build": "tsup",
"watch": "tsup --watch",
"format:code": "xo --fix {source,tests}/**/*.ts",
"format:rest": "prettier --write --ignore-path .gitignore .",
"format": "run-s format:*",
"lint:code": "xo {source,tests}/**/*.ts",
"lint:rest": "prettier --check --ignore-path .gitignore .",
"lint": "run-s lint:*",
"jest": "cross-env TS_NODE_PROJECT=config/tsconfig.json NODE_OPTIONS=--experimental-vm-modules jest --runInBand",
"test:tsc": "tsc --project config/tsconfig.json",
"test:lib": "cross-env FORCE_COLOR=2 pnpm firebase emulators:exec --project donew-mentoring-api-sandbox --export-on-exit test-export \"pnpm jest\"",
"start": "cross-env FORCE_COLOR=2 pnpm firebase emulators:start --project donew-mentoring-api-sandbox",
"deploy:prd": "firebase deploy --only functions --project donew-mentoring-api",
"deploy:dev": "firebase deploy --only functions --project donew-mentoring-api-sandbox",
"deploy": "run-s deploy:*",
"develop": "run-p watch start",
"compile": "run-s clean build",
"test": "run-s compile lint test:*",
"patch": "patch --forward node_modules/firebase-tools/lib/emulator/functionsEmulator.js patches/firebase-tools@10.2.0+verbosity.patch || true",
"hooks": "husky install config/husky",
"prepare": "bash -c \"[[ -z \\\"$FIREBASE_DEPLOY\\\" ]] && pnpm run-s patch compile hooks || true\""
},
"engines": {
"node": "16",
"pnpm": "7"
},
"dependencies": {
"@google-cloud/functions-framework": "3.0.0",
"chalk": "5.0.1",
"class-transformer": "0.5.1",
"cors": "2.8.5",
"ejs": "3.1.7",
"express": "4.18.1",
"express-jsdoc-swagger": "1.6.7",
"express-openapi-validator": "4.13.7",
"express-rate-limit": "6.4.0",
"express-request-id": "2.0.1",
"fengari": "0.1.4",
"firebase-admin": "10.2.0",
"firebase-functions": "3.21.0",
"flua": "0.2.2",
"got": "12.0.4",
"helmet": "5.0.2",
"nanoid": "3.3.4",
"redent": "4.0.0",
"winston": "3.7.2"
},
"devDependencies": {
"@types/cors": "2.8.12",
"@types/ejs": "3.1.0",
"@types/express": "4.17.13",
"@types/express-request-id": "1.4.3",
"@types/jest": "27.5.0",
"@types/node": "17.0.31",
"@types/swagger-ui-express": "4.1.3",
"commitizen": "4.2.4",
"cross-env": "7.0.3",
"cz-conventional-changelog": "3.3.0",
"del-cli": "4.0.1",
"firebase-tools": "10.8.0",
"husky": "7.0.4",
"jest": "28.1.0",
"jest-to-match-shape-of": "1.3.2",
"lint-staged": "12.4.1",
"npm-run-all": "4.1.5",
"prettier": "2.6.2",
"serve": "13.0.2",
"ts-jest": "28.0.1",
"ts-node": "10.7.0",
"tsup": "5.12.7",
"typescript": "4.6.4",
"xo": "0.48.0"
},
"tsup": {
"entry": [
"source/provider/init/index.ts"
],
"format": [
"esm"
],
"target": "esnext",
"tsconfig": "config/tsconfig.json",
"outDir": "build/"
},
"xo": {
"prettier": true,
"rules": {
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-confusing-void-expression": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"import/extensions": [
2,
"never"
],
"no-await-in-loop": 0
},
"parserOptions": {
"project": "config/tsconfig.json"
}
},
"prettier": {
"semi": false,
"useTabs": true,
"singleQuote": true,
"bracketSpacing": true,
"trailingComma": "es5",
"proseWrap": "always",
"endOfLine": "lf",
"printWidth": 90
},
"jest": {
"preset": "ts-jest/presets/default-esm",
"globals": {
"ts-jest": {
"useESM": true
}
},
"collectCoverage": false,
"coverageProvider": "v8",
"testTimeout": 30000,
"testMatch": [
"**/tests/**/*.test.[jt]s"
],
"setupFilesAfterEnv": [
"./tests/setup.ts"
],
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"moduleNameMapper": {
"(\\.{1,2}/.*)\\.js$": "$1"
}
},
"lint-staged": {
"{source,tests}/**/*.ts": "xo --fix",
"**/*.{md,json,yaml,html}": "prettier --write"
},
"pnpm": {
"overrides": {
"node-forge@<1.0.0": ">=1.0.0",
"node-fetch@<2.6.7": ">=2.6.7"
}
}
}