Skip to content

Commit

Permalink
fix: added glob option to rimraf.sync call (#3469)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiancamarasan committed May 18, 2023
1 parent d33bb3e commit 4b71604
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .erb/scripts/delete-source-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import webpackPaths from '../configs/webpack.paths';

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

0 comments on commit 4b71604

Please sign in to comment.