From 6f28969b17531987bebec2394a383259003b8112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Sun, 2 Dec 2018 19:43:21 -0800 Subject: [PATCH] fix(installer): load node patches earlier --- lib/installer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/installer.js b/lib/installer.js index b726ad5..ba527fc 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -1,5 +1,8 @@ 'use strict' +// Load node patches +require('./node/index.js') + const BB = require('bluebird') const { @@ -24,9 +27,6 @@ const mkdirp = BB.promisify(require('mkdirp')) const rimraf = BB.promisify(require('rimraf')) const { spawn } = require('child_process') -// Load node patches -require('./node/index.js') - const readFileAsync = BB.promisify(fs.readFile) const realpathAsync = BB.promisify(fs.realpath) const statAsync = BB.promisify(fs.stat)