generated from defi-org-code/serverless-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
50 lines (50 loc) · 1.82 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
{
"name": "twitter-trend-functions",
"version": "1.0.0",
"description": "Twitter Trend Functions",
"license": "MIT",
"author": "defi.org",
"repository": {
"type": "git",
"url": "git+https://github.com/defi-org-code/serverless-template.git"
},
"bugs": {
"url": "https://github.com/defi-org-code/serverless-template/issues"
},
"homepage": "https://github.com/defi-org-code/serverless-template#readme",
"main": "dist/index.js",
"dependencies": {
"better-sqlite3": "^7.4.1",
"fs-extra": "^10.0.0",
"needle": "^2.6.0"
},
"devDependencies": {
"@types/better-sqlite3": "^5.4.1",
"@types/chai": "4.x",
"@types/fs-extra": "^9.0.11",
"@types/mocha": "8.x",
"@types/needle": "^2.5.1",
"@types/node": "^15.6.0",
"@vercel/ncc": "0.x",
"chai": "4.x",
"mocha": "9.x",
"prettier": "^2.3.2",
"serverless": "2.x",
"serverless-pseudo-parameters": "^2.5.0",
"serverless-step-functions": "^2.32.0",
"ts-node": "^10.0.0",
"typescript": "4.x"
},
"scripts": {
"prettier": "prettier --write '{contracts,src,test}/**/*.{ts,js,json,sol}'",
"prebuild": "rm -rf dist && npm run prettier",
"build": "ncc build src/handler.ts --target=es5",
"writer": "HOME_DIR=dist node -e \"require('./dist/index.js').writer().then(console.log)\"",
"reader": "HOME_DIR=dist node -e \"require('./dist/index.js').reader({pathParameters:{param:'hello'}}).then(console.log)\"",
"test": "env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\" }' mocha -r ts-node/register 'test/**/*.ts'",
"serverless-test": "GITHUB_REPO_NAME='repo' AWS_STORAGE_ARN='arn:aws:elasticfilesystem:us-e-2:123456789012:access-point/fsap-12345678901234567' AWS_STORAGE_SG='sg' AWS_STORAGE_SUBNET='subnet' npx serverless webpack --out dist"
},
"prettier": {
"printWidth": 120
}
}