diff --git a/yarn-project/boxes/blank-react/package.json b/yarn-project/boxes/blank-react/package.json index fb98458103a..3949498f25a 100644 --- a/yarn-project/boxes/blank-react/package.json +++ b/yarn-project/boxes/blank-react/package.json @@ -15,7 +15,7 @@ "formatting": "prettier --check ./src && eslint ./src", "formatting:fix": "prettier -w ./src", "compile": "aztec-cli compile src/contracts --outdir ../artifacts --typescript ../artifacts", - "compile:local": "ts-node --esm ../../cli/src/bin/index.ts compile \"src/contracts\" --outdir \"../artifacts\" --typescript \"../artifacts\"", + "compile:local": "ts-node --esm ../../cli/src/bin/index.ts compile \"src/contracts\" --outdir \"../artifacts\" --typescript \"../artifacts\" && rm -r ./src/contracts/target", "test:integration": "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --runInBand" }, "jest": { diff --git a/yarn-project/boxes/blank/package.json b/yarn-project/boxes/blank/package.json index bb9633069f8..8253623aa77 100644 --- a/yarn-project/boxes/blank/package.json +++ b/yarn-project/boxes/blank/package.json @@ -15,7 +15,7 @@ "formatting": "prettier --check ./src && eslint ./src", "formatting:fix": "prettier -w ./src", "compile": "aztec-cli compile src/contracts --outdir ../artifacts --typescript ../artifacts", - "compile:local": "ts-node --esm ../../cli/src/bin/index.ts compile \"src/contracts\" --outdir \"../artifacts\" --typescript \"../artifacts\"", + "compile:local": "ts-node --esm ../../cli/src/bin/index.ts compile \"src/contracts\" --outdir \"../artifacts\" --typescript \"../artifacts\" && rm -r ./src/contracts/target", "test:integration": "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --runInBand" }, "jest": { diff --git a/yarn-project/boxes/token/package.json b/yarn-project/boxes/token/package.json index d6830d533e3..5d16a8cea01 100644 --- a/yarn-project/boxes/token/package.json +++ b/yarn-project/boxes/token/package.json @@ -15,7 +15,7 @@ "formatting": "prettier --check ./src && eslint ./src", "formatting:fix": "prettier -w ./src", "compile": "aztec-cli compile src/contracts --outdir ../artifacts --typescript ../artifacts", - "compile:local": "ts-node --esm ../../cli/src/bin/index.ts compile \"src/contracts\" --outdir \"../artifacts\" --typescript \"../artifacts\"", + "compile:local": "ts-node --esm ../../cli/src/bin/index.ts compile \"src/contracts\" --outdir \"../artifacts\" --typescript \"../artifacts\" && rm -r ./src/contracts/target", "test:integration": "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --runInBand" }, "jest": { diff --git a/yarn-project/noir-contracts/scripts/compile_all.sh b/yarn-project/noir-contracts/scripts/compile_all.sh index 0eef9863f06..58f3b1381d8 100755 --- a/yarn-project/noir-contracts/scripts/compile_all.sh +++ b/yarn-project/noir-contracts/scripts/compile_all.sh @@ -9,4 +9,6 @@ nargo_check # Runs the compile scripts for all contracts. echo "Compiling all contracts" -nargo compile --workspace --no-backend \ No newline at end of file +nargo compile --workspace --no-backend + +rm -r ./target/debug* \ No newline at end of file