-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
28 lines (28 loc) · 1.25 KB
/
Copy pathpackage.json
File metadata and controls
28 lines (28 loc) · 1.25 KB
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
{
"name": "was-article-seen-before",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "base64 testPayload.json > encodedTestPayload && aws lambda invoke --function-name wasArticleSeenBefore --payload file://encodedTestPayload --no-cli-auto-prompt testResults && cat testResults | cut -c -500",
"upload": "npm run build && aws lambda update-function-code --no-cli-auto-prompt --function-name wasArticleSeenBefore --zip-file fileb://dist/index.zip && sleep 10s && npm test",
"view": "jq \".\" testResults | less",
"prebuild": "rm -rf dist",
"build": "esbuild index.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/index.js",
"postbuild": "cd dist && zip -r index.zip index.js*",
"testPrebuild": "rm -rf testDist",
"testBuild": "npm run testPrebuild && esbuild test.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=testDist/test.js && node testDist/test.js"
},
"author": "",
"license": "ISC",
"description": "",
"devDependencies": {
"esbuild": "^0.17.16",
"typescript": "^5.0.4"
},
"dependencies": {
"@aws-sdk/client-dynamodb": "^3.312.0",
"@aws-sdk/lib-dynamodb": "^3.312.0",
"@types/aws-lambda": "^8.10.114",
"aws-lambda": "^1.0.7"
}
}