-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
38 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
const util = require('util') | ||
const fs = require('fs') | ||
const {stat} = fs.promises || { stat: util.promisify(fs.stat) }; | ||
const { stat } = fs.promises || { stat: util.promisify(fs.stat) } | ||
|
||
async function isNodeGypPackage(path) { | ||
async function isNodeGypPackage (path) { | ||
return await stat(`${path}/binding.gyp`) | ||
.then(st => st.isFile()) | ||
.catch(() => false) | ||
} | ||
|
||
module.exports = { | ||
isNodeGypPackage, | ||
defaultGypInstallScript: 'node-gyp rebuild' | ||
defaultGypInstallScript: 'node-gyp rebuild', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/lib/index.js
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/package.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters