[Poly > Mkdirp] Simplify exporting
This commit is contained in:
parent
425da3f128
commit
a130cbee2e
1 changed files with 2 additions and 7 deletions
|
@ -1,9 +1,6 @@
|
||||||
// Minimal wrapper mimicking mkdirp package
|
// Minimal wrapper mimicking mkdirp package
|
||||||
exports.__esModule = true; // Makes moduleUpdater internals load properly
|
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
|
|
||||||
const async = (path, callback) => { // async
|
const async = (path, callback) => { // async
|
||||||
log('Mkdirp', 'Async:', path);
|
log('Mkdirp', 'Async:', path);
|
||||||
|
|
||||||
|
@ -20,7 +17,5 @@ const sync = (path) => { // sync
|
||||||
} catch (e) { } // Already exists, ignore
|
} catch (e) { } // Already exists, ignore
|
||||||
};
|
};
|
||||||
|
|
||||||
const toExport = async;
|
async.sync = sync;
|
||||||
toExport.sync = sync;
|
module.exports = async;
|
||||||
|
|
||||||
exports.default = toExport;
|
|
Loading…
Reference in a new issue