forked from highlight/highlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
40 lines (40 loc) · 1.92 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
{
"name": "render",
"private": true,
"version": "0.0.0",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"scripts": {
"build": "tsup",
"test:screenshots": "DEV=true node dist/index.js",
"test:activity": "DEV=true node dist/activity.js",
"test": "yarn test:activity && yarn test:screenshots",
"zip": "zip -9 -r function.zip node_modules package.json -x node_modules/\\*\\*/\\*.map -x node_modules/\\*\\*/\\*.d.ts -x node_modules/typescript/\\* -x node_modules/tsup/\\* -x node_modules/@types/\\* -x node_modules/@highlight-run/node/node_modules/typescript/\\* -x node_modules/@highlight-run/rrweb/node_modules/typescript/\\* -x node_modules/puppeteer-screen-recorder/node_modules/@ffmpeg-installer/\\* && cd dist && zip ../function.zip * && cd ..",
"check": "node dist/check.js",
"update:screenshots": "aws lambda update-function-code --function-name session-screenshots --s3-bucket highlight-lambda-code --s3-key session-screenshots.zip > /dev/null && echo 'session-screenshots lambda updated'",
"update:activity": "aws lambda update-function-code --function-name session-activity --s3-bucket highlight-lambda-code --s3-key session-screenshots.zip > /dev/null && echo 'session-activity lambda updated'",
"publish": "yarn zip && aws s3 cp function.zip s3://highlight-lambda-code/session-screenshots.zip && rm function.zip && yarn update:screenshots && yarn update:activity"
},
"installConfig": {
"hoistingLimits": "dependencies"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.400.0",
"@highlight-run/rrweb": "workspace:*",
"@sparticuz/chromium": "^116.0.0",
"pg": "^8.11.3",
"puppeteer-core": "^21.1.1",
"puppeteer-screen-recorder": "^2.1.2"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.119",
"@types/find": "^0.2.1",
"@types/fs-extra": "^11.0.1",
"@types/node": "^20.5.7",
"@types/pg": "^8.10.2",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
},
"packageManager": "yarn@3.2.0"
}