Skip to content

Commit dec646c

Browse files
authored
deps: replace mkdirp.sync with fs.mkdirSync (#234)
1 parent a5f6eb2 commit dec646c

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"prepublishOnly": "npm run build && npm run test"
1212
},
1313
"devDependencies": {
14-
"@types/mkdirp": "^1.0.1",
1514
"@types/mocha": "^8.0.4",
1615
"@types/rimraf": "^3.0.0",
1716
"@types/sinon": "^9.0.1",
@@ -26,7 +25,6 @@
2625
"escape-string-regexp": "^4.0.0",
2726
"is-wsl": "^2.2.0",
2827
"lighthouse-logger": "^1.0.0",
29-
"mkdirp": "^1.0.4",
3028
"rimraf": "^3.0.2"
3129
},
3230
"version": "0.13.4",

src/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import {join} from 'path';
99
import {execSync} from 'child_process';
10-
import * as mkdirp from 'mkdirp';
10+
import {mkdirSync} from 'fs';
1111
import isWsl = require('is-wsl');
1212

1313
export const enum LaunchErrorCodes {
@@ -101,6 +101,6 @@ function makeWin32TmpDir() {
101101
const randomNumber = Math.floor(Math.random() * 9e7 + 1e7);
102102
const tmpdir = join(winTmpPath, 'lighthouse.' + randomNumber);
103103

104-
mkdirp.sync(tmpdir);
104+
mkdirSync(tmpdir, {recursive: true});
105105
return tmpdir;
106106
}

yarn.lock

-12
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,6 @@
5151
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
5252
integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==
5353

54-
"@types/mkdirp@^1.0.1":
55-
version "1.0.1"
56-
resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-1.0.1.tgz#0930b948914a78587de35458b86c907b6e98bbf6"
57-
integrity sha512-HkGSK7CGAXncr8Qn/0VqNtExEE+PHMWb+qlR1faHMao7ng6P3tAaoWWBMdva0gL5h4zprjIO89GJOLXsMcDm1Q==
58-
dependencies:
59-
"@types/node" "*"
60-
6154
"@types/mocha@^8.0.4":
6255
version "8.0.4"
6356
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-8.0.4.tgz#b840c2dce46bacf286e237bfb59a29e843399148"
@@ -540,11 +533,6 @@ [email protected], minimatch@^3.0.4:
540533
dependencies:
541534
brace-expansion "^1.1.7"
542535

543-
mkdirp@^1.0.4:
544-
version "1.0.4"
545-
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
546-
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==
547-
548536
mocha@^8.2.1:
549537
version "8.2.1"
550538
resolved "https://registry.yarnpkg.com/mocha/-/mocha-8.2.1.tgz#f2fa68817ed0e53343d989df65ccd358bc3a4b39"

0 commit comments

Comments
 (0)