@truffle/compile-solidity
Version:
Compiler helper and artifact manager for Solidity files
13 lines • 575 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldIncludePath = void 0;
const path_1 = __importDefault(require("path"));
function shouldIncludePath(filePath) {
const validExtensions = [".sol", ".json"];
return validExtensions.some(extension => path_1.default.extname(filePath) === extension);
}
exports.shouldIncludePath = shouldIncludePath;
//# sourceMappingURL=shouldIncludePath.js.map