Skip to content

Commit 4df0c02

Browse files
committed
Remove mkdirp
If our build scripts target Node 10+, we can use the builtin mkdir function in recursive mode instead.
1 parent 14b7504 commit 4df0c02

File tree

3 files changed

+2
-43
lines changed

3 files changed

+2
-43
lines changed

Diff for: package-lock.json

-38
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"@types/glob": "latest",
4646
"@types/microsoft__typescript-etw": "latest",
4747
"@types/minimist": "latest",
48-
"@types/mkdirp": "latest",
4948
"@types/mocha": "latest",
5049
"@types/ms": "latest",
5150
"@types/node": "latest",
@@ -72,7 +71,6 @@
7271
"hereby": "^1.6.4",
7372
"jsonc-parser": "^3.2.0",
7473
"minimist": "latest",
75-
"mkdirp": "latest",
7674
"mocha": "latest",
7775
"mocha-fivemat-progress-reporter": "latest",
7876
"ms": "^2.1.3",

Diff for: scripts/build/tests.mjs

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import del from "del";
22
import fs from "fs";
33
import os from "os";
44
import path from "path";
5-
import mkdirP from "mkdirp";
65
import cmdLineOptions from "./options.mjs";
76
import { exec } from "./utils.mjs";
87
import { findUpFile, findUpRoot } from "./findUpDir.mjs";
@@ -140,8 +139,8 @@ export async function runConsoleTests(runJs, defaultReporter, runInParallel) {
140139

141140
export async function cleanTestDirs() {
142141
await del([localBaseline, localRwcBaseline]);
143-
mkdirP.sync(localRwcBaseline);
144-
mkdirP.sync(localBaseline);
142+
await fs.promises.mkdir(localRwcBaseline, { recursive: true });
143+
await fs.promises.mkdir(localBaseline, { recursive: true });
145144
}
146145

147146
/**

0 commit comments

Comments
 (0)