Files
pyrofetes-frontend/node_modules/@npmcli/node-gyp/lib/index.js
CHEVALLIER Abel cb235644dc init
2025-11-13 16:23:22 +01:00

15 lines
349 B
JavaScript

const util = require('util')
const fs = require('fs')
const { stat } = fs.promises || { stat: util.promisify(fs.stat) }
async function isNodeGypPackage (path) {
return await stat(`${path}/binding.gyp`)
.then(st => st.isFile())
.catch(() => false)
}
module.exports = {
isNodeGypPackage,
defaultGypInstallScript: 'node-gyp rebuild',
}