[node] add compatibility with node-pre-gyp binary publishing

This commit is contained in:
Konstantin Käfer
2018-06-26 09:03:23 -07:00
parent 95fd7ee742
commit 488b68c693
3 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
// Shim to wrap req.respond while preserving callback-passing API
var mbgl = require('../../lib/mbgl-node.abi-' + process.versions.modules);
var mbgl = require('../../lib/node-v' + process.versions.modules + '/mbgl');
var constructor = mbgl.Map.prototype.constructor;
var Map = function(options) {