UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

15 lines (12 loc) • 349 B
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', }