Skip to content

Commit

Permalink
chore: bump deps (#3486)
Browse files Browse the repository at this point in the history
  • Loading branch information
amilajack committed Jun 4, 2023
1 parent 4b71604 commit c0136ae
Show file tree
Hide file tree
Showing 4 changed files with 1,860 additions and 1,435 deletions.
4 changes: 2 additions & 2 deletions .erb/scripts/clean.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import rimraf from 'rimraf';
import { rimrafSync } from 'rimraf';
import fs from 'fs';
import webpackPaths from '../configs/webpack.paths';

Expand All @@ -9,5 +9,5 @@ const foldersToRemove = [
];

foldersToRemove.forEach((folder) => {
if (fs.existsSync(folder)) rimraf.sync(folder);
if (fs.existsSync(folder)) rimrafSync(folder);
});
6 changes: 3 additions & 3 deletions .erb/scripts/delete-source-maps.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import fs from 'fs';
import path from 'path';
import rimraf from 'rimraf';
import { rimrafSync } from 'rimraf';
import webpackPaths from '../configs/webpack.paths';

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

0 comments on commit c0136ae

Please sign in to comment.