Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch @project-osrm/osrm@6.0.0 for the project I'm working on.
The bindings for node are now in the binding_napi_v8 folder, but the var OSRM exported request the old folder path.
Here is the diff that solved my problem:
diff --git a/node_modules/@project-osrm/osrm/lib/index.js b/node_modules/@project-osrm/osrm/lib/index.js
index 20aa78f..d9eb5d0 100644
--- a/node_modules/@project-osrm/osrm/lib/index.js
+++ b/node_modules/@project-osrm/osrm/lib/index.js
@@ -1,2 +1,2 @@
-var OSRM = module.exports = require('./binding/node_osrm.node').OSRM;
+var OSRM = module.exports = require('./binding_napi_v8/node_osrm.node').OSRM;
OSRM.version = require('../package.json').version;
This issue body was partially generated by patch-package.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
@project-osrm/osrm@6.0.0for the project I'm working on.The bindings for node are now in the
binding_napi_v8folder, but thevar OSRMexported request the old folder path.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.