fix: resource busy when removing all subdirectories

This commit is contained in:
Eli Bosley
2025-02-04 12:05:13 -05:00
parent 0e9c91af86
commit 7b3834ca1f

View File

@@ -15,7 +15,8 @@ try {
process.env.WORKDIR ??= process.env.PWD;
cd(process.env.WORKDIR);
await $`rm -rf ./deploy/*`;
await $`rm -rf ./deploy/release/*`;
await $`rm -rf ./deploy/pre-pack/*`;
// Create deployment directories - ignore if they already exist
await mkdir('./deploy/release', { recursive: true });
await mkdir('./deploy/pre-pack', { recursive: true });