-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
103 lines (103 loc) · 2.75 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"name": "tachyon",
"version": "3.0.0",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/humanmade/tachyon.git"
},
"description": "Human Made Tachyon in node",
"main": "dist/lambda-handler.js",
"config": {
"bucket": "",
"path": "",
"region": "us-east-1",
"function-name": ""
},
"scripts": {
"build": "sam build -u",
"start": "tsc -w & nodemon --watch dist/lambda-handler.js --exec 'node dist/lambda-handler.js'",
"test": "AWS_PROFILE=hmn-test S3_BUCKET=testtachyonbucket S3_REGION=us-east-1 jest",
"build-zip": "rm lambda.zip ; cd .aws-sam/build/Tachyon && zip -r --exclude='node_modules/animated-gif-detector/test/*' ../../../lambda.zip ./node_modules/ package.json ./dist/",
"upload-zip": "aws s3 --region=$npm_config_region cp ./lambda.zip s3://$npm_config_bucket/$npm_config_path",
"update-function-code": "aws lambda update-function-code --region $npm_config_region --function-name $npm_config_function_name --zip-file fileb://`pwd`/lambda.zip",
"lint": "npx eslint ./*.ts ./**/*.ts"
},
"author": "Joe Hoyle",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.712.0",
"eslint-config-react-app": "^7.0.1",
"sharp": "^0.33.5",
"smartcrop-sharp": "^2.0.6"
},
"devDependencies": {
"@aws-sdk/s3-request-presigner": "^3.709.0",
"@humanmade/eslint-config": "^1.1.3",
"@types/aws-lambda": "^8.10.146",
"@types/cli-table": "^0.3.4",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.2",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.3.0",
"aws-lambda": "^1.0.7",
"cli-table": "^0.3.1",
"eslint": "^8.46.0",
"eslint-config": "^0.3.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-jsdoc": "^50.6.1",
"filesize": "^10.1.6",
"jest": "^29.7.0",
"lambda-stream": "^0.5.0",
"nodemon": "^3.1.9",
"ts-jest": "^29.2.5",
"typescript": "^5.7.2"
},
"eslintConfig": {
"extends": "@humanmade/eslint-config",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./tsconfig.json"
]
},
"overrides": [
{
"files": [
"*.ts"
],
"rules": {
"jsdoc/require-param-description": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-param-type": "off",
"jsdoc/require-param": "off",
"no-undef": "off",
"import/named": "off"
}
},
{
"files": [
"*.d.ts"
],
"rules": {
"no-unused-vars": "off",
"no-var": "off"
}
}
]
},
"overrides": {
"smartcrop-sharp": {
"sharp": "$sharp"
},
"@humanmade/eslint-config": {
"eslint": "$eslint",
"eslint-plugin-flowtype": "$eslint-plugin-flowtype",
"eslint-plugin-jsdoc": "$eslint-plugin-jsdoc",
"eslint-config-react-app": "$eslint-config-react-app"
}
},
"engines": {
"node": "18"
}
}