Skip to content

Commit

Permalink
Rename chalk to picocolors
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Oct 26, 2024
1 parent f571670 commit 53c1ef8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/hardhat-foundry/src/foundry.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import chalk from "picocolors";
import picocolors from "picocolors";
import { exec as execCallback, execSync } from "child_process";
import { NomicLabsHardhatPluginError } from "hardhat/internal/core/errors";
import { promisify } from "util";
Expand Down Expand Up @@ -75,7 +75,7 @@ export async function getRemappings() {

export async function installDependency(dependency: string) {
const cmd = `forge install --no-commit ${dependency}`;
console.log(`Running '${chalk.blue(cmd)}'`);
console.log(`Running '${picocolors.blue(cmd)}'`);

try {
await exec(cmd);
Expand Down
8 changes: 5 additions & 3 deletions packages/hardhat-foundry/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { existsSync, writeFileSync } from "fs";
import path from "path";
import chalk from "picocolors";
import picocolors from "picocolors";
import {
getForgeConfig,
getRemappings,
Expand All @@ -24,7 +24,7 @@ extendConfig((config, userConfig) => {
if (!existsSync(path.join(config.paths.root, "foundry.toml"))) {
if (!process.argv.includes(TASK_INIT_FOUNDRY)) {
console.log(
chalk.yellow(
picocolors.yellow(
`Warning: You are using the hardhat-foundry plugin but there isn't a foundry.toml file in your project. Run 'npx hardhat ${TASK_INIT_FOUNDRY}' to create one.`
)
);
Expand Down Expand Up @@ -112,7 +112,9 @@ task(
);

if (existsSync(foundryConfigPath)) {
console.warn(chalk.yellow(`File foundry.toml already exists. Aborting.`));
console.warn(
picocolors.yellow(`File foundry.toml already exists. Aborting.`)
);
process.exit(1);
}

Expand Down

0 comments on commit 53c1ef8

Please sign in to comment.