@tevm/compiler
Version:
Utilities around compiler
9 lines (7 loc) • 389 B
JavaScript
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)