UNPKG

@tevm/compiler

Version:
9 lines (7 loc) 389 B
import { isSolidity } from './isSolidity.js' /** * Util to determine if a file path is a solidity file referenced via a relative import * @param {string} fileName - The file path to check * @returns {boolean} True if the file path is a solidity file referenced via a relative import */ export const isRelativeSolidity = (fileName) => fileName.startsWith('./') && isSolidity(fileName)