[Poly > Mkdirp] Simplify exporting

This commit is contained in:
Ducko 2022-01-14 13:54:18 +00:00
parent 425da3f128
commit a130cbee2e

View file

@ -1,9 +1,6 @@
// Minimal wrapper mimicking mkdirp package
exports.__esModule = true; // Makes moduleUpdater internals load properly
const fs = require('fs');
const async = (path, callback) => { // async
log('Mkdirp', 'Async:', path);
@ -20,7 +17,5 @@ const sync = (path) => { // sync
} catch (e) { } // Already exists, ignore
};
const toExport = async;
toExport.sync = sync;
exports.default = toExport;
async.sync = sync;
module.exports = async;