File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 4141 "glob" : " ~7.2.0" ,
4242 "lodash" : " ~4.17.21" ,
4343 "magic-string" : " ~0.30.0" ,
44- "mkdirp" : " ~3.0.0" ,
4544 "moment" : " ~2.30.1" ,
4645 "package-name-regex" : " ~2.0.6" ,
4746 "spdx-expression-validate" : " ~2.0.0" ,
Original file line number Diff line number Diff line change 2424
2525import fs from 'fs' ;
2626import path from 'path' ;
27- import { mkdirp } from 'mkdirp' ;
2827import _ from 'lodash' ;
2928import moment from 'moment' ;
3029import MagicString from 'magic-string' ;
@@ -588,7 +587,7 @@ class LicensePlugin {
588587 this . debug ( `use encoding: ${ encoding } ` ) ;
589588
590589 // Create directory if it does not already exist.
591- mkdirp . sync ( path . parse ( file ) . dir ) ;
590+ fs . mkdirSync ( path . parse ( file ) . dir , { recursive : true } ) ;
592591
593592 fs . writeFileSync ( file , ( text || '' ) . trim ( ) , {
594593 encoding,
You can’t perform that action at this time.
0 commit comments