Skip to content

Commit

Permalink
update package file
Browse files Browse the repository at this point in the history
  • Loading branch information
janapc committed Feb 19, 2024
1 parent 6102c32 commit 3dd31b3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion catalog/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns": ["jest.config.js"],
"overrides": [
{
"files": ["tests/**/*"],
"files": ["**/*.test.ts"],
"env": {
"jest": true
}
Expand Down
3 changes: 2 additions & 1 deletion catalog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "api the catalog",
"main": "index.js",
"scripts": {
"test": "jest --no-cache --forceExit --detectOpenHandles",
"test": "jest",
"linter": "eslint src",
"local": "ts-node-dev --respawn --transpile-only -r tsconfig-paths/register src/index.ts"
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion catalog/src/storage/aws-s3-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class AwsS3Storage implements IStorage {
const response = await this.client.send(command)
const bodyString = await response.Body?.transformToString('utf-8')
if (bodyString) {
const data: Catalog = JSON.parse(bodyString as string)
const data: Catalog = JSON.parse(bodyString)
return data
}
throw new Error(`I didn't find this ${fileName} file on S3`)
Expand Down
1 change: 1 addition & 0 deletions lambda/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns": ["jest.config.js"],
"overrides": [
{
"files": ["**/*.test.ts"],
Expand Down
3 changes: 2 additions & 1 deletion lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "function to consume SQS messages",
"main": "index.js",
"scripts": {
"test": "jest --no-cache --forceExit --detectOpenHandles",
"test": "jest",
"linter": "eslint .",
"prebuild": "rm -rf dist",
"build": "esbuild index.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/index.js",
"posbuild":"cd dist && zip -r function.zip index.js"
Expand Down

0 comments on commit 3dd31b3

Please sign in to comment.