Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Node v12 #139

Merged
merged 2 commits into from
Dec 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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