diff options
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp')
3 files changed, 65 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/README.md b/sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/README.md new file mode 100644 index 00000000..a32fb2cb --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/README.md @@ -0,0 +1,16 @@ +# @npmcli/node-gyp + +This is the module npm uses to decide whether a package should be built +using [`node-gyp`](https://github.com/nodejs/node-gyp) by default. + +## API + +* `isNodeGypPackage(path)` + +Returns a Promise that resolves to `true` or `false` based on whether the +package at `path` has a `binding.gyp` file. + +* `defaultGypInstallScript` + +A string with the default string that should be used as the `install` +script for node-gyp packages. 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' +} diff --git a/sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/package.json b/sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/package.json new file mode 100644 index 00000000..299a453b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@npmcli/node-gyp/package.json @@ -0,0 +1,35 @@ +{ +  "name": "@npmcli/node-gyp", +  "version": "1.0.3", +  "description": "Tools for dealing with node-gyp packages", +  "scripts": { +    "test": "tap", +    "preversion": "npm test", +    "postversion": "npm publish", +    "prepublishOnly": "git push origin --follow-tags" +  }, +  "repository": { +    "type": "git", +    "url": "https://github.com/npm/node-gyp.git" +  }, +  "keywords": [ +    "npm", +    "cli", +    "node-gyp" +  ], +  "files": [ +    "lib/**/*.js" +  ], +  "main": "lib/index.js", +  "author": "Brian Jenkins <bonkydog@bonkydog.com>", +  "license": "ISC", +  "tap": { +    "check-coverage": true, +    "coverage-map": "map.js" +  }, +  "devDependencies": { +    "require-inject": "^1.4.4", +    "tap": "^14.10.6", +    "tmp": "^0.2.1" +  } +}  | 
