Skip to content

Commit

Permalink
Upgrade to Node v12 (#139)
Browse files Browse the repository at this point in the history
Upgrade to Node v12
  • Loading branch information
vladgolubev authored Dec 13, 2019
2 parents 8955d63 + 80d9bf3 commit df5802a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:10
- image: circleci/node:12

working_directory: ~/repo

Expand Down
2 changes: 1 addition & 1 deletion compile-tesseract.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "shelf.io"
},
"engines": {
"node": ">=10"
"node": ">=12"
},
"scripts": {
"lint": "eslint . --fix",
Expand All @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ cd ..

docker run --rm \
-v "$PWD":/var/task \
lambci/lambda:nodejs10.x test.handler
lambci/lambda:nodejs12.x test.handler

0 comments on commit df5802a

Please sign in to comment.