From a55f68c3be22b5629d2bdc736f74002982b32e17 Mon Sep 17 00:00:00 2001 From: Jess Date: Mon, 15 Jul 2019 06:42:59 -0700 Subject: [PATCH] Added call to donate after npm install (optional) --- package.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5487ca8..41a4d25 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "test:browser-tpl": "mocha-headless-chrome -a incognito -a no-sandbox -a disable-setuid-sandbox -t 300000", "test:browser:detect": "npm run test:browser-tpl -- -f ./tests/detect.test.html", "test:browser:recognize": "npm run test:browser-tpl -- -f ./tests/recognize.test.html", - "lint": "eslint src" + "lint": "eslint src", + "postinstall": "opencollective-postinstall || true" }, "browser": { "./src/node/index.js": "./src/browser/index.js" @@ -54,6 +55,7 @@ "check-types": "^7.4.0", "is-url": "1.2.2", "node-fetch": "^2.3.0", + "opencollective-postinstall": "^2.0.2", "resolve-url": "^0.2.1", "tesseract.js-core": "^2.0.0-beta.10", "tesseract.js-utils": "^1.0.0-beta.8" @@ -65,5 +67,9 @@ "bugs": { "url": "https://github.com/naptha/tesseract.js/issues" }, - "homepage": "https://github.com/naptha/tesseract.js" -} + "homepage": "https://github.com/naptha/tesseract.js", + "collective": { + "type": "opencollective", + "url": "https://opencollective.com/tesseractjs" + } +} \ No newline at end of file