From a130cbee2e06077581743f17ab188f925a9b95a1 Mon Sep 17 00:00:00 2001 From: Oj Date: Fri, 14 Jan 2022 13:54:18 +0000 Subject: [PATCH] [Poly > Mkdirp] Simplify exporting --- polyfills/mkdirp.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/polyfills/mkdirp.js b/polyfills/mkdirp.js index 26e1b91..c52f4e8 100644 --- a/polyfills/mkdirp.js +++ b/polyfills/mkdirp.js @@ -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; \ No newline at end of file +async.sync = sync; +module.exports = async; \ No newline at end of file