Some checks failed
Test / test (macos-latest) (push) Has been cancelled
Test / test (ubuntu-latest) (push) Has been cancelled
Test / test (windows-latest) (push) Has been cancelled
Publish / publish (macos-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
14 lines
308 B
JavaScript
14 lines
308 B
JavaScript
import { rimrafSync } from 'rimraf';
|
|
import fs from 'fs';
|
|
import webpackPaths from '../configs/webpack.paths';
|
|
|
|
const foldersToRemove = [
|
|
webpackPaths.distPath,
|
|
webpackPaths.buildPath,
|
|
webpackPaths.dllPath,
|
|
];
|
|
|
|
foldersToRemove.forEach((folder) => {
|
|
if (fs.existsSync(folder)) rimrafSync(folder);
|
|
});
|