text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.isNativeModule = void 0;
  const path_1 = require("path");
  const markerModules = ['bindings', 'nan', 'node-gyp', 'node-gyp-build', 'node-pre-gyp', 'prebuild'];
  const isNativeModule = ({ binary, dependencies = {}, devDependencies = {}, files = [], gypfile, }) => {
      if (binary || gypfile) {
          return true;
      }
      const hasMarkerModule = markerModules.some((marker) => dependencies[marker] || devDependencies[marker]);
      if (hasMarkerModule) {
          return true;
      }
      const hasBinaryFile = files.some((path) => !path.startsWith('!') && (0, path_1.extname)(path) === '.node');
      return hasBinaryFile;
  };
  exports.isNativeModule = isNativeModule;
  //# sourceMappingURL=detect_native_module.js.map