-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
54 lines (54 loc) · 2.04 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
{
"name": "cognito-sms-sender",
"version": "1.0.0",
"description": "Custom SMS sender for Cognito",
"main": "index.js",
"contributors": [
{
"name": "Brian Ojeda",
"email": "[email protected]"
}
],
"scripts": {
"build": "npx tsc --noEmit && npx esbuild ./src/index.ts --bundle --platform=node --target=node18 --external:aws-lambda --log-level=warning --sourcemap --outfile=dist/index.js",
"opa-build": "npm run opa-build:sample_policy",
"opa-build:sample_policy": "opa build -t wasm -e sample/validate ./src/opa/fixtures/sample_policy.rego && tar -zxv -C ./src/opa/fixtures/ -f bundle.tar.gz '/policy.wasm' && mv ./src/opa/fixtures/policy.wasm ./src/opa/fixtures/sample_policy.wasm",
"opa-test": "npm run opa-test:sample_policy",
"opa-test:sample_policy": "opa test -v ./src/opa/fixtures/sample_policy.rego ./src/opa/fixtures/sample_policy_test.rego",
"test": "jest --detectOpenHandles --forceExit",
"test:coverage": "jest --coverage",
"tsc": "npx tsc",
"lint": "npx eslint src/**/*.ts"
},
"license": "ISC",
"dependencies": {
"@aws-crypto/client-node": "^1.9.1",
"@aws-sdk/client-dynamodb": "^3.369.0",
"@aws-sdk/client-ses": "^3.369.0",
"@aws-sdk/client-sns": "^3.369.0",
"@open-policy-agent/opa-wasm": "^1.8.0",
"base64-js": "^1.5.1",
"libphonenumber-js": "^1.10.37",
"pino": "^8.14.1"
},
"devDependencies": {
"@jest/globals": "^29.6.1",
"@tsconfig/node18": "^18.2.0",
"@types/aws-lambda": "^8.10.119",
"@types/jest": "^29.5.3",
"@types/node": "^18.16.19",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"aws-sdk-client-mock": "^3.0.0",
"aws-sdk-client-mock-jest": "^3.0.0",
"esbuild": "^0.18.11",
"eslint": "^8.44.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.2",
"jest": "^29.6.1",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
}
}