From 36488f59da1a8b8dfa4af55d9c214367713bf097 Mon Sep 17 00:00:00 2001 From: Vitalii Sikora Date: Fri, 13 Dec 2019 15:58:58 +0200 Subject: [PATCH 1/2] feat: upgrade to node 12 --- .circleci/config.yml | 2 +- compile-tesseract.sh | 2 +- package.json | 3 ++- test.sh | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) 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/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 From 80d9bf3c97dc0aee1497c04b21d7bab4249ed572 Mon Sep 17 00:00:00 2001 From: Vitalii Sikora Date: Fri, 13 Dec 2019 15:59:09 +0200 Subject: [PATCH 2/2] docs: update readme --- readme.md | 2 ++ 1 file changed, 2 insertions(+) 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.