-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
72 lines (72 loc) · 1.86 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"name": "cloudwatch-alarm-to-slack",
"version": "1.0.0",
"scripts": {
"build": "sls webpack",
"clean": "rimraf src/**/*.js test/**/*.js scripts/**/*.js",
"deploy": "sls deploy",
"invoke": "ENVIRONMENT=local sls invoke local --function func",
"lint": "eslint ./**/*.ts",
"jest": "ENVIRONMENT=test SLACK_WEBHOOK_URL=slack.com jest",
"test": "npm run lint && npm run jest && ENVIRONMENT=test SLACK_WEBHOOK_URL=slack.com sls package",
"watch": "npm run jest -- --watch"
},
"dependencies": {
"async-retry": "^1.3.3",
"axios": "^0.27.2",
"lint-staged": "^13.0.3",
"source-map-support": "^0.5.12"
},
"devDependencies": {
"@types/aws-lambda": "8.10.108",
"@types/jest": "29.2.2",
"@types/node": "18.11.9",
"@typescript-eslint/eslint-plugin": "5.42.1",
"@typescript-eslint/parser": "5.42.1",
"aws-sdk": "^2.493.0",
"dotenv": "16.0.3",
"eslint": "8.27.0",
"husky": "^4.3.8",
"jest": "29.3.0",
"rimraf": "3.0.2",
"serverless": "3.22.0",
"serverless-iam-roles-per-function": "^3.1.0",
"serverless-webpack": "^5.3.5",
"ts-jest": "29.0.3",
"ts-loader": "9.4.1",
"typescript": "4.8.4"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"curly": [
2,
"multi-line",
"consistent"
],
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/no-inferrable-types": "warn"
}
},
"lint-staged": {
"*": "npm run lint"
},
"jest": {
"rootDir": "test",
"preset": "ts-jest",
"testEnvironment": "node"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}