Skip to content

Commit

Permalink
Avoid grunt, see #1436
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 10, 2024
1 parent 9c26f15 commit 0b48f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/grunt/tasks/clean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const clean = ( async () => {
const buildDirectory = `../${repo}/build`;

// Check if the build directory exists, then delete and recreate it
if ( grunt.file.exists( buildDirectory ) ) {
grunt.file.delete( buildDirectory );
if ( fs.existsSync( buildDirectory ) ) {
fs.rmSync( buildDirectory, { recursive: true, force: true } );
}
fs.mkdirSync( buildDirectory, { recursive: true } );
} )();

0 comments on commit 0b48f85

Please sign in to comment.