Skip to content

Commit

Permalink
Workaround hardhat-dependency-compiler issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gnpar committed Mar 21, 2024
1 parent 126b16e commit 76369e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ require("@nomicfoundation/hardhat-foundry");

// const exec = require("util").promisify(require("child_process").exec);
const { execSync } = require("child_process");
const { task } = require("hardhat/config");
const { extendConfig, task } = require("hardhat/config");
const { TASK_TEST } = require("hardhat/builtin-tasks/task-names");

// Workaround https://github.com/ItsNickBarry/hardhat-dependency-compiler/issues/16
const path = require("path");
extendConfig((config) => {
config.paths.sources = path.resolve(config.paths.sources);
});

task(TASK_TEST, async function (args, hre, runSuper) {
// Run forge tests
await execSync("forge test", { stdio: "inherit" });
Expand Down

0 comments on commit 76369e2

Please sign in to comment.