diff --git a/frontend/.vscode/tasks.json b/frontend/.vscode/tasks.json index 10e53668b8..39abf9943d 100644 --- a/frontend/.vscode/tasks.json +++ b/frontend/.vscode/tasks.json @@ -15,11 +15,11 @@ "dependsOrder": "sequence", "dependsOn": [ "AF: Clean", + "AF: build_flowy_sdk", "AF: Flutter Pub Get", "AF: Flutter Package Get", "AF: Generate Language Files", "AF: Generate Freezed Files", - "AF: build_flowy_sdk" ], "presentation": { "reveal": "always", diff --git a/frontend/scripts/clean.cmd b/frontend/scripts/clean.cmd index 5ee373268c..c4bc3a4454 100644 --- a/frontend/scripts/clean.cmd +++ b/frontend/scripts/clean.cmd @@ -1,7 +1,6 @@ cd rust-lib cargo clean -cd ../../shared-lib -cargo clean - -rmdir /s/q "lib-infra/.cache" \ No newline at end of file +if exist "lib-infra/.cache" ( + rmdir /s/q "lib-infra/.cache" +) \ No newline at end of file diff --git a/frontend/scripts/clean.sh b/frontend/scripts/clean.sh index b276f25250..aa3b3bd15d 100644 --- a/frontend/scripts/clean.sh +++ b/frontend/scripts/clean.sh @@ -4,7 +4,10 @@ cd rust-lib cargo clean -cd ../../shared-lib -cargo clean +CACHE_FILE=lib-infra/.cache +if [ -f "$CACHE_FILE" ]; then + echo "Remove $CACHE_FILE" + rm -rf $CACHE_FILE +fi + -rm -rf lib-infra/.cache \ No newline at end of file