@solidstate/hardhat-license-identifier
Version:
Prepend local Solidity source files with an SPDX License Identifier
22 lines (21 loc) • 754 B
JavaScript
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';
const plugin = {
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;