Skip to content

Commit

Permalink
#567: Turn on globbing in rimrafSync calls (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
tombogle authored Jan 5, 2024
2 parents 75ca025 + fdf33f5 commit 93ab16d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .erb/scripts/delete-source-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import webpackPaths from '../configs/webpack.paths';

export default function deleteSourceMaps() {
if (fs.existsSync(webpackPaths.distMainPath))
rimrafSync(path.join(webpackPaths.distMainPath, '*.js.map'));
rimrafSync(path.join(webpackPaths.distMainPath, '*.js.map'), { glob: true });
if (fs.existsSync(webpackPaths.distRendererPath))
rimrafSync(path.join(webpackPaths.distRendererPath, '*.js.map'));
rimrafSync(path.join(webpackPaths.distRendererPath, '*.js.map'), { glob: true });
}

0 comments on commit 93ab16d

Please sign in to comment.