-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
44 lines (44 loc) · 1.81 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
{
"name": "equalify-api",
"version": "1.0.0",
"main": "index.js",
"repository": "[email protected]:EqualifyEverything/equalify-api.git",
"author": "Christopher Aitken <[email protected]>",
"license": "AGPL-3.0-only",
"scripts": {
"start:prod": "esbuild src/**/*.ts --outdir=dist/local && nodemon --env-file=.env.production dist/local/app.js",
"start:staging": "esbuild src/**/*.ts --outdir=dist/local && nodemon --env-file=.env.staging dist/local/app.js",
"build:prod": "esbuild src/index.ts --bundle --minify --platform=node --outdir=dist/lambda --external:@aws-sdk && cd dist/lambda && zip -r lambda.zip index.js > /dev/null && aws --profile equalify lambda update-function-code --function-name equalify-api --zip-file \"fileb://lambda.zip\" > /dev/null && rm -rf lambda.zip",
"build:staging": "esbuild src/index.ts --bundle --minify --platform=node --outdir=dist/lambda --external:@aws-sdk && cd dist/lambda && zip -r lambda.zip index.js > /dev/null && aws --profile equalify lambda update-function-code --function-name equalify-api-staging --zip-file \"fileb://lambda.zip\" > /dev/null && rm -rf dist/lambda/lambda.zip",
"build": "yarn build:staging && yarn build:prod"
},
"imports": {
"#src/*": "./src/*.ts"
},
"type": "module",
"dependencies": {},
"devDependencies": {
"@fastify/aws-lambda": "^4.1.0",
"@types/node": "^20.12.7",
"aws-jwt-verify": "^4.0.1",
"esbuild": "^0.21.5",
"fastify": "^4.26.2",
"nodemon": "^3.1.0",
"openai": "^4.36.0",
"serverless-postgres": "^2.1.0",
"string-strip-html": "^13.4.8",
"uuid": "^10.0.0"
},
"resolutions": {
"graphql": "16.x"
},
"nodemonConfig": {
"ext": "ts,js,json",
"watch": [
"src/"
],
"events": {
"restart": "esbuild --format=esm src/**/*.ts --outdir=dist"
}
}
}