We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 709ef8f commit b60aa42Copy full SHA for b60aa42
lib/build.js
@@ -1,6 +1,7 @@
1
'use strict'
2
3
-const fs = require('graceful-fs').promises
+const gracefulFs = require('graceful-fs')
4
+const fs = gracefulFs.promises
5
const path = require('path')
6
const { glob } = require('glob')
7
const log = require('./log')
@@ -85,7 +86,7 @@ async function build (gyp, argv) {
85
86
async function findSolutionFile () {
87
const files = await glob('build/*.sln')
88
if (files.length === 0) {
- if (require('fs').existsSync('build/Makefile') || (await glob('build/*.mk')).length !== 0) {
89
+ if (gracefulFs.existsSync('build/Makefile') || (await glob('build/*.mk')).length !== 0) {
90
command = makeCommand
91
await doWhich(false)
92
return
0 commit comments