This commit is contained in:
2025-08-18 23:06:34 +08:00
parent 0bc04fb659
commit ed18af0cad
1926 changed files with 275098 additions and 0 deletions

14
package/node_modules/@npmcli/node-gyp/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
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',
}