Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5872 from trufflesuite/fix/hardhat-console-no-com…
Browse files Browse the repository at this point in the history
…pile

Prevent spawned Hardhat console from triggering a compile
  • Loading branch information
kevinbluer authored Feb 7, 2023
2 parents 5a88a20 + 84d3dc4 commit 275339a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/from-hardhat/src/ask-hardhat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export const askHardhatConsole = async (
const prefix = `${sos}truffle-start${st}`;
const suffix = `${sos}truffle-end${st}`;

const hardhat = spawn(`npx`, ["hardhat", "console"], {
// note the hardhat console instance is spawned with --no-compile which causes it to skip the initial (default) compilation step
const hardhat = spawn(`npx`, ["hardhat", "console", "--no-compile"], {
stdio: ["pipe", "pipe", "inherit"],
cwd: workingDirectory
});
Expand Down

0 comments on commit 275339a

Please sign in to comment.