diff --git a/.circleci/config.yml b/.circleci/config.yml index 05a3f4d..0dae96a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2 jobs: build: docker: - - image: circleci/node:10 + - image: circleci/node:12 working_directory: ~/repo diff --git a/compile-tesseract.sh b/compile-tesseract.sh index f419225..45356cf 100644 --- a/compile-tesseract.sh +++ b/compile-tesseract.sh @@ -1,5 +1,5 @@ # Spin up and enter the docker container on your machine with the following command: -# docker run -it lambci/lambda:build-nodejs10.x bash +# docker run -it lambci/lambda:build-nodejs12.x bash # Then run the rest of the commands inside diff --git a/package.json b/package.json index c48bf9c..ca563a1 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "url": "shelf.io" }, "engines": { - "node": ">=10" + "node": ">=12" }, "scripts": { "lint": "eslint . --fix", @@ -32,6 +32,7 @@ }, "devDependencies": { "@shelf/eslint-config": "0.12.1", + "@types/node": "12", "eslint": "6.7.2", "husky": "3.1.0", "jest": "24.9.0", diff --git a/readme.md b/readme.md index 7456ca8..663b7a9 100644 --- a/readme.md +++ b/readme.md @@ -14,6 +14,8 @@ $ yarn add @shelf/aws-lambda-tesseract `2.x` was compiled for Node 10.x runtime. +`3.x` works for Node 12.x runtime. + ## How does it work? This package contains an archive with [Tesseract 4.1](https://github.com/tesseract-ocr/tesseract) compiled for usage in AWS Lambda environment. diff --git a/test.sh b/test.sh index fe6b957..995ea41 100755 --- a/test.sh +++ b/test.sh @@ -6,4 +6,4 @@ cd .. docker run --rm \ -v "$PWD":/var/task \ - lambci/lambda:nodejs10.x test.handler + lambci/lambda:nodejs12.x test.handler