mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-19 17:23:59 +00:00
feat(patches): add patch for tesseract.js
This commit is contained in:
@@ -41,5 +41,8 @@
|
||||
"turbo": "^1.13.4",
|
||||
"typescript": "^5.5.2"
|
||||
},
|
||||
"trustedDependencies": ["@biomejs/biome", "lefthook", "tesseract.js"]
|
||||
"trustedDependencies": ["@biomejs/biome", "lefthook", "tesseract.js"],
|
||||
"patchedDependencies": {
|
||||
"tesseract.js@5.1.0": "patches/tesseract.js@5.1.0.patch"
|
||||
}
|
||||
}
|
||||
|
||||
11
patches/tesseract.js@5.1.0.patch
Normal file
11
patches/tesseract.js@5.1.0.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
diff --git a/src/worker/node/defaultOptions.js b/src/worker/node/defaultOptions.js
|
||||
index 053c1e3e3b561b2e5b5e3609e9c6b509b1661f11..d4fe84893786d340de3527bcf7f090e1006c0f09 100644
|
||||
--- a/src/worker/node/defaultOptions.js
|
||||
+++ b/src/worker/node/defaultOptions.js
|
||||
@@ -6,5 +6,5 @@ const defaultOptions = require('../../constants/defaultOptions');
|
||||
*/
|
||||
module.exports = {
|
||||
...defaultOptions,
|
||||
- workerPath: path.join(__dirname, '..', '..', 'worker-script', 'node', 'index.js'),
|
||||
+ workerPath: path.join(import.meta.dir, 'tesseract.js', 'src', 'worker-script', 'node', 'index.js'),
|
||||
};
|
||||
Reference in New Issue
Block a user