File tree 2 files changed +7
-5
lines changed
packages/hardhat-foundry/src
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
- import chalk from "picocolors" ;
1
+ import picocolors from "picocolors" ;
2
2
import { exec as execCallback , execSync } from "child_process" ;
3
3
import { NomicLabsHardhatPluginError } from "hardhat/internal/core/errors" ;
4
4
import { promisify } from "util" ;
@@ -75,7 +75,7 @@ export async function getRemappings() {
75
75
76
76
export async function installDependency ( dependency : string ) {
77
77
const cmd = `forge install --no-commit ${ dependency } ` ;
78
- console . log ( `Running '${ chalk . blue ( cmd ) } '` ) ;
78
+ console . log ( `Running '${ picocolors . blue ( cmd ) } '` ) ;
79
79
80
80
try {
81
81
await exec ( cmd ) ;
Original file line number Diff line number Diff line change 7
7
import { HardhatRuntimeEnvironment } from "hardhat/types" ;
8
8
import { existsSync , writeFileSync } from "fs" ;
9
9
import path from "path" ;
10
- import chalk from "picocolors" ;
10
+ import picocolors from "picocolors" ;
11
11
import {
12
12
getForgeConfig ,
13
13
getRemappings ,
@@ -24,7 +24,7 @@ extendConfig((config, userConfig) => {
24
24
if ( ! existsSync ( path . join ( config . paths . root , "foundry.toml" ) ) ) {
25
25
if ( ! process . argv . includes ( TASK_INIT_FOUNDRY ) ) {
26
26
console . log (
27
- chalk . yellow (
27
+ picocolors . yellow (
28
28
`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.`
29
29
)
30
30
) ;
@@ -112,7 +112,9 @@ task(
112
112
) ;
113
113
114
114
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
+ ) ;
116
118
process . exit ( 1 ) ;
117
119
}
118
120
You can’t perform that action at this time.
0 commit comments