aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/lib
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/lib')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/lib/index.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/lib/index.js b/sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/lib/index.js
new file mode 100644
index 00000000..d4ebf14e
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/lib/index.js
@@ -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'
+}