index.js 435 B

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