-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackage.json
92 lines (92 loc) · 3.29 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
{
"name": "@raise/server",
"private": true,
"main": "serverless.ts",
"scripts": {
"postinstall": "shx cp -n src/env/local.template.ts src/env/local.ts && shx cp -n src/env/local.ts src/env/env.ts && serverless dynamodb install",
"start": "npm run start:local",
"start:local": "shx cp src/env/local.ts src/env/env.ts && serverless offline start",
"deploy:dev": "shx cp src/env/dev.ts src/env/env.ts && npm run deploy:common",
"deploy:prod": "shx cp src/env/prod.ts src/env/env.ts && npm run deploy:common",
"deploy:common": "serverless deploy --verbose",
"build": "npm run generate && serverless package",
"generate": "npm run generate:schemas && npm run generate:client && npm run generate:router",
"generate:schemas": "ts-node --transpile-only local/schemasToTS.ts",
"generate:client": "ts-node local/generateClient.ts",
"generate:router": "ts-node local/generateRouterImports.ts",
"test": "shx cp src/env/local.ts src/env/env.ts && TZ=utc jest",
"test:watch": "shx cp src/env/local.ts src/env/env.ts && TZ=utc jest --watch",
"type-check": "tsc",
"lint": "eslint 'src' 'serverless.ts'",
"lint:fix": "npm run lint -- --fix",
"config:aws": "serverless config credentials --provider aws --key $AWS_ACCESS_KEY_ID --secret $AWS_SECRET_ACCESS_KEY --profile raise-405129592067 --overwrite"
},
"engines": {
"node": ">=16"
},
"dependencies": {
"@aws-sdk/client-dynamodb": "^3.428.0",
"@aws-sdk/client-sesv2": "^3.428.0",
"@aws-sdk/lib-dynamodb": "^3.428.0",
"@middy/core": "^2.5.3",
"@middy/http-json-body-parser": "^2.5.3",
"@middy/validator": "^2.5.3",
"@raise/shared": "*",
"@smithy/node-http-handler": "^2.1.7",
"ajv": "^8.6.3",
"axios": "^1.7.7",
"escape-html": "^1.0.3",
"google-auth-library": "^7.10.0",
"http-errors": "^2.0.0",
"jsonwebtoken": "^9.0.0",
"middy-middleware-jwt-auth": "^6.0.0",
"source-map-support": "^0.5.21",
"stripe": "^8.184.0",
"ulid": "^2.3.0"
},
"devDependencies": {
"@raise/eslint-config": "*",
"@serverless/typescript": "^3.27.0",
"@types/aws-lambda": "^8.10.71",
"@types/escape-html": "^1.0.2",
"@types/http-errors": "^2.0.1",
"@types/jest": "^29.4.0",
"@types/json-schema": "^7.0.9",
"@types/jsonwebtoken": "^8.5.5",
"@types/node": "^16.18.3",
"aws-dynamodb-local": "^0.0.11",
"eslint": "^8.44.0",
"fork-ts-checker-webpack-plugin": "^8.0.0",
"jest": "^29.4.3",
"json-schema-to-typescript": "^10.1.5",
"mockdate": "^3.0.5",
"serverless": "^3.37.0",
"serverless-dynamodb": "^0.2.49",
"serverless-offline": "^13.3.0",
"serverless-offline-ses-v2": "^1.0.4",
"serverless-offline-watcher": "^1.1.0",
"serverless-webpack": "^5.13.0",
"shx": "^0.3.4",
"ts-jest": "^29.0.5",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.2",
"typescript": "^5.5.4",
"webpack": "^5.94.0",
"webpack-node-externals": "^3.0.0"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"globalSetup": "./local/test-setup-global.js",
"globalTeardown": "./local/test-teardown.js",
"setupFilesAfterEnv": [
"./local/test-setup-env.ts"
],
"collectCoverageFrom": [
"src/**/*.ts",
"!src/env/*.ts",
"src/env/env.ts"
],
"restoreMocks": true
}
}