Skip to content

Commit

Permalink
chore: 馃 change rmdir to rm
Browse files Browse the repository at this point in the history
  • Loading branch information
mjancarik committed May 8, 2024
1 parent 6add7e3 commit be359ee
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/cli/src/clearBuildFolder.mjs
@@ -1,9 +1,10 @@
import { rmdir } from 'node:fs/promises';
import { rm } from 'node:fs/promises';

export async function clearBuildFolder({ merkurConfig }) {
try {
await rmdir(merkurConfig.widgetServer.buildFolder, { recursive: true });
} catch (error) {
console.warn(error);
}
await rm(merkurConfig.widgetServer.buildFolder, {
recursive: true,
force: true,
});
} catch {} //eslint-disable-line no-empty
}

0 comments on commit be359ee

Please sign in to comment.