Skip to content

Commit b60aa42

Browse files
committed
hoist fs
1 parent 709ef8f commit b60aa42

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/build.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict'
22

3-
const fs = require('graceful-fs').promises
3+
const gracefulFs = require('graceful-fs')
4+
const fs = gracefulFs.promises
45
const path = require('path')
56
const { glob } = require('glob')
67
const log = require('./log')
@@ -85,7 +86,7 @@ async function build (gyp, argv) {
8586
async function findSolutionFile () {
8687
const files = await glob('build/*.sln')
8788
if (files.length === 0) {
88-
if (require('fs').existsSync('build/Makefile') || (await glob('build/*.mk')).length !== 0) {
89+
if (gracefulFs.existsSync('build/Makefile') || (await glob('build/*.mk')).length !== 0) {
8990
command = makeCommand
9091
await doWhich(false)
9192
return

0 commit comments

Comments
 (0)