UNPKG

@solidstate/hardhat-license-identifier

Version:
10 lines (9 loc) 475 B
import { filterSourcePaths, readSourceLicenses, } from '../lib/license_identifier.js'; import { printSourceLicenses } from '../lib/print.js'; const action = async (args, hre) => { const config = hre.config.licenseIdentifier; const sourcePaths = filterSourcePaths(config, await hre.solidity.getRootFilePaths()); const sourceLicenses = await readSourceLicenses(sourcePaths, hre.config.paths.root); printSourceLicenses(sourceLicenses); }; export default action;