node/node-addon-api/index.js
raw| 1 | const path = require('path'); |
| 2 | |
| 3 | const includeDir = path.relative('.', __dirname); |
| 4 | |
| 5 | module.exports = { |
| 6 | include: `"${__dirname}"`, // deprecated, can be removed as part of 4.0.0 |
| 7 | include_dir: includeDir, |
| 8 | gyp: path.join(includeDir, 'node_api.gyp:nothing'), // deprecated. |
| 9 | targets: path.join(includeDir, 'node_addon_api.gyp'), |
| 10 | isNodeApiBuiltin: true, |
| 11 | needsFlag: false |
| 12 | }; |