Skip to content

Commit 53c1ef8

Browse files
committed
Rename chalk to picocolors
1 parent f571670 commit 53c1ef8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/hardhat-foundry/src/foundry.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chalk from "picocolors";
1+
import picocolors from "picocolors";
22
import { exec as execCallback, execSync } from "child_process";
33
import { NomicLabsHardhatPluginError } from "hardhat/internal/core/errors";
44
import { promisify } from "util";
@@ -75,7 +75,7 @@ export async function getRemappings() {
7575

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

8080
try {
8181
await exec(cmd);

packages/hardhat-foundry/src/index.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
import { HardhatRuntimeEnvironment } from "hardhat/types";
88
import { existsSync, writeFileSync } from "fs";
99
import path from "path";
10-
import chalk from "picocolors";
10+
import picocolors from "picocolors";
1111
import {
1212
getForgeConfig,
1313
getRemappings,
@@ -24,7 +24,7 @@ extendConfig((config, userConfig) => {
2424
if (!existsSync(path.join(config.paths.root, "foundry.toml"))) {
2525
if (!process.argv.includes(TASK_INIT_FOUNDRY)) {
2626
console.log(
27-
chalk.yellow(
27+
picocolors.yellow(
2828
`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.`
2929
)
3030
);
@@ -112,7 +112,9 @@ task(
112112
);
113113

114114
if (existsSync(foundryConfigPath)) {
115-
console.warn(chalk.yellow(`File foundry.toml already exists. Aborting.`));
115+
console.warn(
116+
picocolors.yellow(`File foundry.toml already exists. Aborting.`)
117+
);
116118
process.exit(1);
117119
}
118120

0 commit comments

Comments
 (0)