diff --git a/node_modules/@npmcli/node-gyp/README.md b/node_modules/@npmcli/node-gyp/README.md new file mode 100644 index 000000000000..a32fb2cb80c6 --- /dev/null +++ b/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/node_modules/@npmcli/node-gyp/lib/index.js b/node_modules/@npmcli/node-gyp/lib/index.js index 77e9f287e54f..d4ebf14ed9af 100644 --- a/node_modules/@npmcli/node-gyp/lib/index.js +++ b/node_modules/@npmcli/node-gyp/lib/index.js @@ -1,5 +1,6 @@ const util = require('util') -const {stat} = require('fs').promises +const fs = require('fs') +const {stat} = fs.promises || { stat: util.promisify(fs.stat) }; async function isNodeGypPackage(path) { return await stat(`${path}/binding.gyp`) diff --git a/node_modules/@npmcli/node-gyp/package.json b/node_modules/@npmcli/node-gyp/package.json index ff78b3cc3817..37ecb87a2bdc 100644 --- a/node_modules/@npmcli/node-gyp/package.json +++ b/node_modules/@npmcli/node-gyp/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/node-gyp", - "version": "1.0.1", + "version": "1.0.2", "description": "Tools for dealing with node-gyp packages", "scripts": { "test": "tap", @@ -24,6 +24,7 @@ "coverage-map": "map.js" }, "devDependencies": { + "require-inject": "^1.4.4", "tap": "^14.10.6", "tmp": "^0.2.1" } diff --git a/node_modules/@npmcli/run-script/lib/is-server-package.js b/node_modules/@npmcli/run-script/lib/is-server-package.js index 667a3c4f2c3e..d16862324752 100644 --- a/node_modules/@npmcli/run-script/lib/is-server-package.js +++ b/node_modules/@npmcli/run-script/lib/is-server-package.js @@ -1,4 +1,6 @@ -const { stat } = require('fs').promises +const util = require('util') +const fs = require('fs') +const { stat } = fs.promises || { stat: util.promisify(fs.stat) } const { resolve } = require('path') module.exports = async path => { try { diff --git a/node_modules/@npmcli/run-script/package.json b/node_modules/@npmcli/run-script/package.json index 332f1e74df65..9df5b3117874 100644 --- a/node_modules/@npmcli/run-script/package.json +++ b/node_modules/@npmcli/run-script/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/run-script", - "version": "1.8.2", + "version": "1.8.3", "description": "Run a lifecycle script for a package (descendant of npm-lifecycle)", "author": "Isaac Z. Schlueter (https://izs.me)", "license": "ISC", @@ -28,7 +28,7 @@ "tap": "^14.11.0" }, "dependencies": { - "@npmcli/node-gyp": "^1.0.1", + "@npmcli/node-gyp": "^1.0.2", "@npmcli/promise-spawn": "^1.3.2", "infer-owner": "^1.0.4", "node-gyp": "^7.1.0", diff --git a/package-lock.json b/package-lock.json index d95a35b54c95..c108e431e883 100644 --- a/package-lock.json +++ b/package-lock.json @@ -361,7 +361,7 @@ "@npmcli/arborist": "^2.2.1", "@npmcli/ci-detect": "^1.2.0", "@npmcli/config": "^1.2.9", - "@npmcli/run-script": "^1.8.2", + "@npmcli/run-script": "^1.8.3", "abbrev": "~1.1.1", "ansicolors": "~0.3.2", "ansistyles": "~0.1.3", @@ -836,9 +836,9 @@ "inBundle": true }, "node_modules/@npmcli/node-gyp": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.1.tgz", - "integrity": "sha512-pBqoKPWmuk9iaEcXlLBVRIA6I1kG9JiICU+sG0NuD6NAR461F+02elHJS4WkQxHW2W5rnsfvP/ClKwmsZ9RaaA==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.2.tgz", + "integrity": "sha512-yrJUe6reVMpktcvagumoqD9r08fH1iRo01gn1u0zoCApa9lnZGEigVKUd2hzsCId4gdtkZZIVscLhNxMECKgRg==", "inBundle": true }, "node_modules/@npmcli/promise-spawn": { @@ -851,12 +851,12 @@ } }, "node_modules/@npmcli/run-script": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-1.8.2.tgz", - "integrity": "sha512-iwKq152Q62zG2rz/zRqT/OLDKcF1nBGTGmFdHRkTV8JRte6bUt18vPG4vOr/uoECecrIuJe1SSyvuUF32yt5BA==", + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-1.8.3.tgz", + "integrity": "sha512-ELPGWAVU/xyU+A+H3pEPj0QOvYwLTX71RArXcClFzeiyJ/b/McsZ+d0QxpznvfFtZzxGN/gz/1cvlqICR4/suQ==", "inBundle": true, "dependencies": { - "@npmcli/node-gyp": "^1.0.1", + "@npmcli/node-gyp": "^1.0.2", "@npmcli/promise-spawn": "^1.3.2", "infer-owner": "^1.0.4", "node-gyp": "^7.1.0", @@ -10070,9 +10070,9 @@ "integrity": "sha512-qq3oEfcLFwNfEYOQ8HLimRGKlD8WSeGEdtUa7hmzpR8Sa7haL1KVQrvgO6wqMjhWFFVjgtrh1gIxDz+P8sjUaA==" }, "@npmcli/node-gyp": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.1.tgz", - "integrity": "sha512-pBqoKPWmuk9iaEcXlLBVRIA6I1kG9JiICU+sG0NuD6NAR461F+02elHJS4WkQxHW2W5rnsfvP/ClKwmsZ9RaaA==" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-1.0.2.tgz", + "integrity": "sha512-yrJUe6reVMpktcvagumoqD9r08fH1iRo01gn1u0zoCApa9lnZGEigVKUd2hzsCId4gdtkZZIVscLhNxMECKgRg==" }, "@npmcli/promise-spawn": { "version": "1.3.2", @@ -10083,11 +10083,11 @@ } }, "@npmcli/run-script": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-1.8.2.tgz", - "integrity": "sha512-iwKq152Q62zG2rz/zRqT/OLDKcF1nBGTGmFdHRkTV8JRte6bUt18vPG4vOr/uoECecrIuJe1SSyvuUF32yt5BA==", + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-1.8.3.tgz", + "integrity": "sha512-ELPGWAVU/xyU+A+H3pEPj0QOvYwLTX71RArXcClFzeiyJ/b/McsZ+d0QxpznvfFtZzxGN/gz/1cvlqICR4/suQ==", "requires": { - "@npmcli/node-gyp": "^1.0.1", + "@npmcli/node-gyp": "^1.0.2", "@npmcli/promise-spawn": "^1.3.2", "infer-owner": "^1.0.4", "node-gyp": "^7.1.0", diff --git a/package.json b/package.json index bcef847b1307..f29a32af421b 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@npmcli/arborist": "^2.2.1", "@npmcli/ci-detect": "^1.2.0", "@npmcli/config": "^1.2.9", - "@npmcli/run-script": "^1.8.2", + "@npmcli/run-script": "^1.8.3", "abbrev": "~1.1.1", "ansicolors": "~0.3.2", "ansistyles": "~0.1.3",