Skip to content

Commit 56a0cb4

Browse files
authored
chore(build): replace rimraf with rm from nodejs (#245)
1 parent a61a41c commit 56a0cb4

File tree

3 files changed

+3
-132
lines changed

3 files changed

+3
-132
lines changed

gulpfile.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1+
import {rm} from 'node:fs/promises';
12
import path from 'node:path';
23

34
import {addVirtualFile, createTypescriptProject} from '@gravity-ui/gulp-utils';
45
import {dest, parallel, series, src, task} from 'gulp';
56
import gulpSass from 'gulp-sass';
67
import sourcemaps from 'gulp-sourcemaps';
7-
import * as rimraf from 'rimraf';
88
import * as sass from 'sass';
99

1010
import packageJson from './package.json' with {type: 'json'};
1111

1212
const BUILD_DIR = path.resolve('dist');
1313
const sassLoader = gulpSass(sass);
1414

15-
task('clean', (done) => {
16-
rimraf.sync(BUILD_DIR);
17-
done();
15+
task('clean', () => {
16+
return rm(BUILD_DIR, {recursive: true, force: true});
1817
});
1918

2019
async function compileTs(modules = false) {

package-lock.json

Lines changed: 0 additions & 127 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
"prettier": "^3.6.2",
115115
"react": "^18.3.1",
116116
"react-dom": "^18.3.1",
117-
"rimraf": "^6.0.1",
118117
"sass": "^1.93.1",
119118
"sass-loader": "^16.0.5",
120119
"storybook": "10.0.8",

0 commit comments

Comments
 (0)