Skip to content

Commit

Permalink
Merge pull request #6032 from NomicFoundation/minor-refactoring-tasks…
Browse files Browse the repository at this point in the history
…-v-next

Minor refactoring tasks for v-next
  • Loading branch information
antico5 authored Dec 13, 2024
2 parents d2b3bc8 + 8cee837 commit 0e65cf8
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion v-next/hardhat/src/internal/cli/init/constants.ts

This file was deleted.

2 changes: 1 addition & 1 deletion v-next/hardhat/src/internal/cli/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import { resolveFromRoot } from "@ignored/hardhat-vnext-utils/path";
import chalk from "chalk";

import { findClosestHardhatConfig } from "../../config-loading.js";
import { HARDHAT_NAME } from "../../constants.js";
import { getHardhatVersion } from "../../utils/package.js";

import { HARDHAT_NAME } from "./constants.js";
import {
getDevDependenciesInstallationCommand,
getPackageManager,
Expand Down
4 changes: 2 additions & 2 deletions v-next/hardhat/src/internal/cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import { setGlobalHardhatRuntimeEnvironment } from "../global-hre-instance.js";
import { createHardhatRuntimeEnvironment } from "../hre-intialization.js";

import { printErrorMessages } from "./error-handler.js";
import { getGlobalHelpString } from "./helpers/getGlobalHelpString.js";
import { getHelpString } from "./helpers/getHelpString.js";
import { getGlobalHelpString } from "./help/get-global-help-string.js";
import { getHelpString } from "./help/get-help-string.js";
import { ensureTelemetryConsent } from "./telemetry/telemetry-permissions.js";
import { printVersionMessage } from "./version.js";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { describe, it } from "node:test";
import { readClosestPackageJson } from "@ignored/hardhat-vnext-utils/package";

import { BUILTIN_GLOBAL_OPTIONS_DEFINITIONS } from "../../../../src/internal/builtin-global-options.js";
import { getGlobalHelpString } from "../../../../src/internal/cli/helpers/getGlobalHelpString.js";
import { getGlobalHelpString } from "../../../../src/internal/cli/help/get-global-help-string.js";
import { globalOption } from "../../../../src/internal/core/config.js";
import { buildGlobalOptionDefinitions } from "../../../../src/internal/core/global-options.js";
import { ArgumentType } from "../../../../src/types/arguments.js";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { describe, it } from "node:test";

import chalk from "chalk";

import { getHelpString } from "../../../../src/internal/cli/helpers/getHelpString.js";
import { getHelpString } from "../../../../src/internal/cli/help/get-help-string.js";
import { ArgumentType } from "../../../../src/types/arguments.js";

describe("getHelpString", function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
getLongestNameLength,
getSection,
getUsageString,
} from "../../../../src/internal/cli/helpers/utils.js";
} from "../../../../src/internal/cli/help/utils.js";
import { ArgumentType } from "../../../../src/types/arguments.js";

describe("utils", function () {
Expand Down

0 comments on commit 0e65cf8

Please sign in to comment.