Skip to content

Commit

Permalink
[INTERNAL] Adjust rimraf usage to native promise
Browse files Browse the repository at this point in the history
  • Loading branch information
flovogt committed Jan 19, 2023
1 parent 0715623 commit 1851d0e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/build/ProjectBuilder.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {promisify} from "node:util";
import rimraf from "rimraf";
const rimrafp = promisify(rimraf);
import * as resourceFactory from "@ui5/fs/resourceFactory";
import logger from "@ui5/logger";
const log = logger.getLogger("ProjectBuilder");
Expand Down Expand Up @@ -225,7 +223,7 @@ class ProjectBuilder {

if (cleanDest) {
log.info(`Cleaning target directory...`);
await rimrafp(destPath);
await rimraf(destPath);
}
const startTime = process.hrtime();
try {
Expand Down

0 comments on commit 1851d0e

Please sign in to comment.