diff options
author | Gar <gar+gh@danger.computer> | 2021-02-11 21:58:08 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-02-11 21:58:08 +0300 |
commit | 9a6e9d38abccec793b6ac14871c2b639d62a6c41 (patch) | |
tree | d29b465c88fe7616894345e9b6af3a96b4296052 /node_modules/@npmcli | |
parent | 96dffab988048164516d8cf73c1fbf66781f86df (diff) |
@npmcli/run-script@1.8.3
Diffstat (limited to 'node_modules/@npmcli')
-rw-r--r-- | node_modules/@npmcli/node-gyp/README.md | 16 | ||||
-rw-r--r-- | node_modules/@npmcli/node-gyp/lib/index.js | 3 | ||||
-rw-r--r-- | node_modules/@npmcli/node-gyp/package.json | 3 | ||||
-rw-r--r-- | node_modules/@npmcli/run-script/lib/is-server-package.js | 4 | ||||
-rw-r--r-- | node_modules/@npmcli/run-script/package.json | 4 |
5 files changed, 25 insertions, 5 deletions
diff --git a/node_modules/@npmcli/node-gyp/README.md b/node_modules/@npmcli/node-gyp/README.md new file mode 100644 index 000000000..a32fb2cb8 --- /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 77e9f287e..d4ebf14ed 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 ff78b3cc3..37ecb87a2 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 667a3c4f2..d16862324 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 332f1e74d..9df5b3117 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 <i@izs.me> (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", |