hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
25 lines (21 loc) • 721 B
text/typescript
import type { HardhatPlugin } from "../../../types/plugins.js";
import { task } from "../../core/config.js";
const hardhatPlugin: HardhatPlugin = {
id: "builtin:run",
tasks: [
task("run", "Run a user-defined script after compiling the project")
.addPositionalArgument({
name: "script",
description: "A js or ts file to be run within hardhat's environment",
})
.addFlag({
name: "noCompile",
description: "Do not compile the project before running the script",
})
.setAction(async () => import("./task-action.js"))
.build(),
],
dependencies: () => [import("../solidity/index.js")],
npmPackage: "hardhat",
};
export default hardhatPlugin;