diff --git a/package.json b/package.json index 28ce95e..b2f504a 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "test": "mocha" }, "devDependencies": { + "mocha": "^10.2.0", "solhint": "^4.0.0" } } diff --git a/pretest.sh b/pretest.sh index edcb7f3..8f94679 100755 --- a/pretest.sh +++ b/pretest.sh @@ -11,8 +11,8 @@ mkdir -p "$destination_directory" # Function to copy files and directories recursively copy_directory() { local src="$1" - local dest="$2" - find "$src" -mindepth 1 -maxdepth 1 -exec cp -r {} "$dest" \; + local dest="$2"; + rsync -a --exclude=".git" "$src/" "$dest" } # Copy the files and directories from the source to the destination