Add redundant check because somehow rmdir still fails even though docs say it shouldn't and I can't reproduce it
@@ -27,7 +27,9 @@ export async function build() {
async function prepareTestContracts() {
const inDir = 'contracts/contracts';
const outDir = 'contracts/dev-contracts/generated';
+ if (fs.existsSync(outDir)) {
fs.rmdirSync(outDir, { recursive: true });
+ }
fs.mkdirSync(outDir, { recursive: true });
fs.copyFileSync(`${inDir}/Governance.sol`, `${outDir}/GovernanceTest.sol`);
