hardhat-spdx-license-identifier
Version:
Prepend local Solidity source files with an SPDX License Identifier
11 lines (10 loc) • 412 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const task_names_1 = require("hardhat/builtin-tasks/task-names");
const config_1 = require("hardhat/config");
(0, config_1.task)(task_names_1.TASK_COMPILE, async function (args, hre, runSuper) {
if (hre.config.spdxLicenseIdentifier.runOnCompile) {
await hre.run('prepend-spdx-license');
}
await runSuper(args);
});
;