const path = require("path");

function shouldIncludePath(filePath) {
  return path.extname(filePath) === ".sol";
}

module.exports = { shouldIncludePath };

const path = require("path");

function shouldIncludePath(filePath) {
  const validExtensions = [".sol", ".abi.json", ".json"];
  return validExtensions.some(extension => path.extname(filePath) === extension);
}

module.exports = { shouldIncludePath };

Add .abi.json and .json to whitelist for profiler
Add .abi.json and .json to whitelist for profiler
