feat: drop mkdirp (#1743) · mjeanroy/rollup-plugin-license@2f90c74 (original) (raw)

Original file line number Diff line number Diff line change
@@ -41,7 +41,6 @@
41 41 "glob": "~7.2.0",
42 42 "lodash": "~4.17.21",
43 43 "magic-string": "~0.30.0",
44 -"mkdirp": "~3.0.0",
45 44 "moment": "~2.30.1",
46 45 "package-name-regex": "~2.0.6",
47 46 "spdx-expression-validate": "~2.0.0",
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@
24 24
25 25 import fs from 'fs';
26 26 import path from 'path';
27 -import { mkdirp } from 'mkdirp';
28 27 import _ from 'lodash';
29 28 import moment from 'moment';
30 29 import MagicString from 'magic-string';
@@ -588,7 +587,7 @@ class LicensePlugin {
588 587 this.debug(`use encoding: ${encoding}`);
589 588
590 589 // Create directory if it does not already exist.
591 -mkdirp.sync(path.parse(file).dir);
590 +fs.mkdirSync(path.parse(file).dir, { recursive: true });
592 591
593 592 fs.writeFileSync(file, (text |
594 593 encoding,