Bundles nan, node-cmake and node-pre-gyp for bootstrapping node-osrm, resolves #4216

Building `node-osrm` from source requires nan, node-cmake and
node-pre-gyp npm packages already \*. In order to bootstrap we
bundle these dev packages in the bundle we publish to npm.

\* See `src/nodejs/CMakeLists.txt`

Check `npm pack` - we now expect to see a `node_modules` directory
with nan, node-cmake, and node-pre-gyp already there.
This commit is contained in:
Daniel J. Hofmann 2017-07-06 15:44:00 +02:00 committed by Patrick Niklaus
parent 8c5ac84f0c
commit 1ef75c7a61

View File

@ -53,6 +53,8 @@
"xmlbuilder": "^4.2.1"
},
"bundleDependencies": [
"nan",
"node-cmake",
"node-pre-gyp"
],
"main": "lib/index.js",