UNPKG

@solidstate/hardhat-license-identifier

Version:
27 lines (24 loc) 802 B
import pkg from '../package.json' with { type: 'json' }; import taskLicense from './tasks/license.js'; import taskLicenseList from './tasks/license_list.js'; import taskLicenseWrite from './tasks/license_write.js'; import './type_extensions.js'; import { HardhatPlugin } from 'hardhat/types/plugins'; const plugin: HardhatPlugin = { id: pkg.name!, npmPackage: pkg.name!, dependencies: [ async () => { const { default: HardhatSolidstateUtils } = await import( '@solidstate/hardhat-solidstate-utils' ); return HardhatSolidstateUtils; }, ], tasks: [taskLicense, taskLicenseList, taskLicenseWrite], hookHandlers: { config: import.meta.resolve('./hooks/config.js'), solidity: import.meta.resolve('./hooks/solidity.js'), }, }; export default plugin;