Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-04-05 23:12:39 +0300
committerGar <wraithgar@github.com>2022-04-07 00:29:40 +0300
commit0e87cac8b6f09692f6bd1bf086aadbe323d127b5 (patch)
tree97b6877de25622f3be515979e4e9a9808bfef3b2 /node_modules
parente9b25cd66bef17e807a84e7b10384f5f4d0064b7 (diff)
deps: @npmcli/node-gyp@2.0.0
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/@npmcli/node-gyp/lib/index.js6
-rw-r--r--node_modules/@npmcli/node-gyp/package.json32
-rw-r--r--node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/lib/index.js14
-rw-r--r--node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/package.json45
4 files changed, 24 insertions, 73 deletions
diff --git a/node_modules/@npmcli/node-gyp/lib/index.js b/node_modules/@npmcli/node-gyp/lib/index.js
index d4ebf14ed..cdf18560e 100644
--- a/node_modules/@npmcli/node-gyp/lib/index.js
+++ b/node_modules/@npmcli/node-gyp/lib/index.js
@@ -1,8 +1,8 @@
const util = require('util')
const fs = require('fs')
-const {stat} = fs.promises || { stat: util.promisify(fs.stat) };
+const { stat } = fs.promises || { stat: util.promisify(fs.stat) }
-async function isNodeGypPackage(path) {
+async function isNodeGypPackage (path) {
return await stat(`${path}/binding.gyp`)
.then(st => st.isFile())
.catch(() => false)
@@ -10,5 +10,5 @@ async function isNodeGypPackage(path) {
module.exports = {
isNodeGypPackage,
- defaultGypInstallScript: 'node-gyp rebuild'
+ defaultGypInstallScript: 'node-gyp rebuild',
}
diff --git a/node_modules/@npmcli/node-gyp/package.json b/node_modules/@npmcli/node-gyp/package.json
index 299a453b6..04eeec8ff 100644
--- a/node_modules/@npmcli/node-gyp/package.json
+++ b/node_modules/@npmcli/node-gyp/package.json
@@ -1,12 +1,18 @@
{
"name": "@npmcli/node-gyp",
- "version": "1.0.3",
+ "version": "2.0.0",
"description": "Tools for dealing with node-gyp packages",
"scripts": {
"test": "tap",
"preversion": "npm test",
"postversion": "npm publish",
- "prepublishOnly": "git push origin --follow-tags"
+ "prepublishOnly": "git push origin --follow-tags",
+ "lint": "eslint \"**/*.js\"",
+ "postlint": "template-oss-check",
+ "template-oss-apply": "template-oss-apply --force",
+ "lintfix": "npm run lint -- --fix",
+ "snap": "tap",
+ "posttest": "npm run lint"
},
"repository": {
"type": "git",
@@ -18,18 +24,22 @@
"node-gyp"
],
"files": [
- "lib/**/*.js"
+ "bin/",
+ "lib/"
],
"main": "lib/index.js",
- "author": "Brian Jenkins <bonkydog@bonkydog.com>",
+ "author": "GitHub Inc.",
"license": "ISC",
- "tap": {
- "check-coverage": true,
- "coverage-map": "map.js"
- },
"devDependencies": {
- "require-inject": "^1.4.4",
- "tap": "^14.10.6",
- "tmp": "^0.2.1"
+ "@npmcli/eslint-config": "^3.0.1",
+ "@npmcli/template-oss": "3.2.2",
+ "tap": "^16.0.1"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ },
+ "templateOSS": {
+ "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
+ "version": "3.2.2"
}
}
diff --git a/node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/lib/index.js b/node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/lib/index.js
deleted file mode 100644
index cdf18560e..000000000
--- a/node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/lib/index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-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/node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/package.json b/node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/package.json
deleted file mode 100644
index 04eeec8ff..000000000
--- a/node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/package.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "name": "@npmcli/node-gyp",
- "version": "2.0.0",
- "description": "Tools for dealing with node-gyp packages",
- "scripts": {
- "test": "tap",
- "preversion": "npm test",
- "postversion": "npm publish",
- "prepublishOnly": "git push origin --follow-tags",
- "lint": "eslint \"**/*.js\"",
- "postlint": "template-oss-check",
- "template-oss-apply": "template-oss-apply --force",
- "lintfix": "npm run lint -- --fix",
- "snap": "tap",
- "posttest": "npm run lint"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/npm/node-gyp.git"
- },
- "keywords": [
- "npm",
- "cli",
- "node-gyp"
- ],
- "files": [
- "bin/",
- "lib/"
- ],
- "main": "lib/index.js",
- "author": "GitHub Inc.",
- "license": "ISC",
- "devDependencies": {
- "@npmcli/eslint-config": "^3.0.1",
- "@npmcli/template-oss": "3.2.2",
- "tap": "^16.0.1"
- },
- "engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
- },
- "templateOSS": {
- "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
- "version": "3.2.2"
- }
-}