Skip to content

Commit 71e9ccc

Browse files
committed
chore: use node:fs, node:path for clean gulp task instead of del pkg
1 parent 7fd6110 commit 71e9ccc

File tree

3 files changed

+8
-125
lines changed

3 files changed

+8
-125
lines changed

gulpfile.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require("dotenv").config();
1+
//require("dotenv").config();
22

33
import { Product, RubricQuestion, Contributor } from "./src/parsing/types";
44

@@ -18,15 +18,18 @@ import {
1818
const gulp = require("gulp");
1919
const postcss = require("gulp-postcss");
2020
const rename = require("gulp-rename");
21-
const del = require("del");
22-
const fs = require("fs");
21+
const fs = require("node:fs");
22+
const path = require("node:path");
2323

2424
const rubric: RubricQuestion[] = loadRubric();
2525
const contributors: Contributor[] = loadContributors();
2626
const products: Product[] = loadProducts(rubric, contributors);
2727

28-
gulp.task("clean", () => {
29-
return del("./dist/**/*");
28+
gulp.task("clean", async () => {
29+
return await fs.rm(path.join(__dirname, "dist"), {
30+
recursive: true,
31+
force: true,
32+
});
3033
});
3134

3235
gulp.task("build api", async () => {

package-lock.json

Lines changed: 0 additions & 119 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
@@ -19,7 +19,6 @@
1919
"@types/node": "^22.5.0",
2020
"a17t": "^0.10.1",
2121
"autoprefixer": "^10.2.6",
22-
"del": "^5.1.0",
2322
"dotenv": "^8.2.0",
2423
"gulp": "^5.0.0",
2524
"gulp-hb": "^8.0.0",

0 commit comments

Comments
 (0)