forked from highlight/highlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
38 lines (38 loc) · 1.07 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
{
"name": "ai",
"packageManager": "yarn@3.5.0",
"scripts": {
"build": "tsc --build ./",
"dev": "DEV=true nodemon",
"publish": "yarn zip && aws s3 cp function.zip s3://highlight-lambda-code/ai-insights.zip && rm function.zip && yarn update",
"update": "aws lambda update-function-code --function-name ai-insights --s3-bucket highlight-lambda-code --s3-key ai-insights.zip > /dev/null && echo 'ai-insights lambda updated'",
"zip": "zip -r function.zip node_modules package.json && cd dist && zip ../function.zip *.js && cd .. "
},
"type": "commonjs",
"nodemonConfig": {
"watch": [
"src/*.ts"
],
"ext": "ts, html",
"ignore": [
"src/public"
],
"exec": "./node_modules/.bin/ts-node -r tsconfig-paths/register ./src/server.ts"
},
"installConfig": {
"hoistingLimits": "workspaces"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.119",
"@types/express": "^4.17.17",
"@types/node": "^20.2.5",
"nodemon": "^2.0.22",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
},
"dependencies": {
"cors": "^2.8.5",
"express": "^4.18.2",
"openai": "^3.2.1"
}
}