hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
23 lines (19 loc) • 635 B
text/typescript
import type { HardhatPlugin } from "../../../types/plugins.js";
import { ArgumentType } from "../../../types/arguments.js";
import { task } from "../../core/config.js";
const hardhatPlugin: HardhatPlugin = {
id: "builtin:flatten",
tasks: [
task("flatten")
.setDescription("Flatten and print contracts and their dependencies")
.addVariadicArgument({
name: "files",
defaultValue: [],
description: "An optional list of files to flatten",
type: ArgumentType.FILE,
})
.setAction(async () => import("./task-action.js"))
.build(),
],
};
export default hardhatPlugin;