From 1c893f4c69d5f7ba125dafa1c4f6df25b64a212f Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Sat, 26 Oct 2024 23:53:24 +0000 Subject: [PATCH] Normalize the builtin plugin names --- v-next/hardhat/src/internal/builtin-plugins/artifacts/index.ts | 2 +- v-next/hardhat/src/internal/builtin-plugins/clean/index.ts | 2 +- v-next/hardhat/src/internal/builtin-plugins/console/index.ts | 2 +- .../src/internal/builtin-plugins/network-manager/index.ts | 2 +- v-next/hardhat/src/internal/builtin-plugins/run/index.ts | 2 +- .../hardhat/src/internal/builtin-plugins/solidity-test/index.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/v-next/hardhat/src/internal/builtin-plugins/artifacts/index.ts b/v-next/hardhat/src/internal/builtin-plugins/artifacts/index.ts index ae02872753..3891c4fd4b 100644 --- a/v-next/hardhat/src/internal/builtin-plugins/artifacts/index.ts +++ b/v-next/hardhat/src/internal/builtin-plugins/artifacts/index.ts @@ -2,7 +2,7 @@ import type { HardhatPlugin } from "../../../types/plugins.js"; import "./type-extensions.js"; const hardhatPlugin: HardhatPlugin = { - id: "artifacts", + id: "builtin:artifacts", hookHandlers: { hre: import.meta.resolve("./hook-handlers/hre.js"), }, diff --git a/v-next/hardhat/src/internal/builtin-plugins/clean/index.ts b/v-next/hardhat/src/internal/builtin-plugins/clean/index.ts index 4e86760a97..08c3de42db 100644 --- a/v-next/hardhat/src/internal/builtin-plugins/clean/index.ts +++ b/v-next/hardhat/src/internal/builtin-plugins/clean/index.ts @@ -3,7 +3,7 @@ import type { HardhatPlugin } from "../../../types/plugins.js"; import { task } from "../../core/config.js"; const hardhatPlugin: HardhatPlugin = { - id: "clean", + id: "builtin:clean", tasks: [ task("clean", "Clears the cache and deletes all artifacts") .addFlag({ diff --git a/v-next/hardhat/src/internal/builtin-plugins/console/index.ts b/v-next/hardhat/src/internal/builtin-plugins/console/index.ts index 5fd17a4d2d..d577a6e598 100644 --- a/v-next/hardhat/src/internal/builtin-plugins/console/index.ts +++ b/v-next/hardhat/src/internal/builtin-plugins/console/index.ts @@ -3,7 +3,7 @@ import type { HardhatPlugin } from "../../../types/plugins.js"; import { task } from "../../core/config.js"; const hardhatPlugin: HardhatPlugin = { - id: "console", + id: "builtin:console", tasks: [ task("console", "Opens a hardhat console") .setAction(import.meta.resolve("./task-action.js")) diff --git a/v-next/hardhat/src/internal/builtin-plugins/network-manager/index.ts b/v-next/hardhat/src/internal/builtin-plugins/network-manager/index.ts index 645de60565..8e0a2ae0be 100644 --- a/v-next/hardhat/src/internal/builtin-plugins/network-manager/index.ts +++ b/v-next/hardhat/src/internal/builtin-plugins/network-manager/index.ts @@ -8,7 +8,7 @@ import "./type-extensions/hooks.js"; import "./type-extensions/hre.js"; const hardhatPlugin: HardhatPlugin = { - id: "network-manager", + id: "builtin:network-manager", hookHandlers: { config: import.meta.resolve("./hook-handlers/config.js"), hre: import.meta.resolve("./hook-handlers/hre.js"), diff --git a/v-next/hardhat/src/internal/builtin-plugins/run/index.ts b/v-next/hardhat/src/internal/builtin-plugins/run/index.ts index 174ebea368..f8e6700f26 100644 --- a/v-next/hardhat/src/internal/builtin-plugins/run/index.ts +++ b/v-next/hardhat/src/internal/builtin-plugins/run/index.ts @@ -3,7 +3,7 @@ import type { HardhatPlugin } from "../../../types/plugins.js"; import { task } from "../../core/config.js"; const hardhatPlugin: HardhatPlugin = { - id: "run", + id: "builtin:run", tasks: [ task("run", "Runs a user-defined script after compiling the project") .addPositionalArgument({ diff --git a/v-next/hardhat/src/internal/builtin-plugins/solidity-test/index.ts b/v-next/hardhat/src/internal/builtin-plugins/solidity-test/index.ts index 4ca209057b..882ea1d631 100644 --- a/v-next/hardhat/src/internal/builtin-plugins/solidity-test/index.ts +++ b/v-next/hardhat/src/internal/builtin-plugins/solidity-test/index.ts @@ -4,7 +4,7 @@ import { ArgumentType } from "../../../types/arguments.js"; import { task } from "../../core/config.js"; const hardhatPlugin: HardhatPlugin = { - id: "builtin:solidity-test", + id: "builtin:solidity-tests", tasks: [ task(["test:solidity"], "Run the Solidity tests") .setAction(import.meta.resolve("./task-action.js"))